Interface ITerrainAttributeSystem
System that stores attribute information about loaded terrain, including ground tiles, building tiles, and speed trees. Attributes include physical properties of the terrain, such as its composition (concrete, wood, dirt, etc).
Inherited Members
Namespace: Ride
Assembly: cs.temp.dll.dll
Syntax
public interface ITerrainAttributeSystem : IRideSystem, IApiInject, IIdentity
Methods
Name | Description |
---|---|
ClearSystem() | Clears all attributes from the system. |
CreateTerrainAttribute() | Creates a new empty TerrainAttribute, which stores a terrain's attribute information. |
GetAllAttributes() | Returns all attribute RideIDs in use by the scene. |
GetColliderObject(RideID) | Returns RideID of the object that has the tile's collider. |
GetFragmentType(RideID) | Returns fragment type of the terrain object. |
GetRendererObject(RideID) | Returns RideID of the object that has the tile's renderer. |
GetTerrainAttribute(RideID) | Returns UnityTerrainAttribute associated with given RideID. |
GetTerrainAttributeFromCollider(RideID) | Returns RideID of a terrain's attribute information using its collider object ID. |
GetTerrainType(RideID) | Returns terrain type of the terrain object. |
SetColliderObject(RideID, RideID) | Terrains loaded via AssetBundle have their collider and renderer separated into different objects to allow for different LODs for each. This sets the collider object. |
SetRendererObject(RideID, RideID) | Terrains loaded via AssetBundle have their collider and renderer separated into different objects to allow for different LODs for each. This sets the renderer object. |
SetType(RideID, TerrainType) | Sets the TerrainType and FragmentType of the TerrainAttribute. FragmentType is automatically set based on the TerrainType. |