Browsing articles tagged with " view"
Sep
22
2015

Increase Terrain Detail Draw Distance in Editor

Its quite annoying how the grass fades in editor (since 250 is the maximum view distance in Terrain settings), but you can force the draw distance higher with simple script whichs runs in editor References: http://docs.unity3d.com/ScriptReference/Terrain-detailObjectDistance.html http://docs.unity3d.com/ScriptReference/ExecuteInEditMode.html Sample code: *Note this runs with Update loop […]

Oct
16
2014

2D Fog Of War

Got some nice looking Fog of War system working with sprites (2D)! It might eventually work on mobiles too (although at lower resolution..) *Will be posting it to asset store hopefully within this month.. ** Update 2022: Now after those “few months”, project sources are […]

Oct
12
2014

2D Visibility / Shadow

Started converting this 2D visibility/light script ( http://ncase.me/sight-and-light/ ) to unity, finally some progress! btw. lines are drawn using GLDebug from : http://www.unity3d-france.com/unity/phpBB3/viewtopic.php?f=24&t=5409 Unity forum thread: http://forum.unity3d.com/threads/2d-visibility-shadow-free.275698/ — TODO: – Quad segments are currently crossed.. – Fix mesh generation *Temporary fix:  insert extra boxes outside […]

Dec
9
2012

Enemy Visibility Cone (idea)

Testing one visibility cone idea for enemies. (later will check what other solutions there are..) Code: If enemy stays inside blue trigger area (attached to player) then If enemy view angle is towards the player (within view angle range) then Do Linecast(s) to player bounding […]

Aug
13
2012

Simple Sniper Scope View

Easy fullscreen sniper view, with just few lines of code..1 line actually! (test image is using some random sniper texture..) Can be easily animated with effects (using shader).. Added Zoom while in sniper mode (by adjusting the FOV) Webplayer: http://unitycoder.com/upload/demos/fake_sniper_view_unity/ Download source: FakeSniperView.unityPackage

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.