Class ScenarioMap
Scenario Maps are used to author scenarios directly in the unity editor, without the need for C# programming. In the normal use case, this script is attached to a plane, whose texture is a visual representation of the scenario terrain. Various markers are then placed on this map (in the unity editor) that represent various entites that participate in the scenario. When the unity scene is started, these entities are placed at the corresponding locations on the actual terrain, after it is loaded.
Implements
IEntity
Inherited Members
Namespace: Ride.Scenario
Assembly: cs.temp.dll.dll
Syntax
public class ScenarioMap : RideMonoBehaviour
Fields
Name | Description |
---|---|
AutostartScenario | |
DestroyMap | |
DestroyMarkers | |
MonitorAgents | |
MonitorGroups | |
ScenarioTimeAtStart | |
SetScenarioTime | |
terrainCenter | |
terrainExtent | |
TerrainIsPreloadedInScene |
Methods
Name | Description |
---|---|
GetTerrainPosition(RideVector3) | |
PrimaryTargetID(GameObject) | A utilty function that picks the RideID of a game object with multiple Scenario Map Components |
Start() |