Demonstrates terrain map line-of-sight (LOS) system for BLUEFOR, OPFOR and CIV agents.
Demonstrates terrain map line-of-sight (LOS) system for BLUEFOR, OPFOR and CIV agents.
Allow the Razish terrain map to load in completely, then use the button commands in the upper region of the screen.
Points
Agents
Agent LOS
Camera
Note, instanced agents cannot be removed currently; reload the scene to clear the map of agents.
Assets/Ride/Examples/LOS/ExampleLOS.unity
Multiple objects and prefabs are required by the LOS system in order to achieve the results in this example scene.
First, add this script to an object in your scene to enable the LOS system.
Instance the following prefabs to enable loading of a navigable terrain map:
Next, import the SelectorUI prefab into your scene to enable rectangular selection and highlight of units by way of the RectSelectionDisplay script.
This prefab also contains the necessary EventSystem and Canvas child prefabs.