Class ResourceLoaderSystem
Responsbile for loading assets/resources from the project See scene ExampleApiFunctions for example usage.
Inherited Members
Namespace: Ride
Assembly: cs.temp.dll.dll
Syntax
public class ResourceLoaderSystem : RideSystemMonoBehaviour, IRideSystem, IApiInject, IIdentity
Fields
Name | Description |
---|---|
m_itemsBuiltIn | |
m_itemsProjectSpecific | |
m_sceneObjectsBuiltIn | |
m_sceneObjectsProjectSpecific | |
m_unitPrefabsBuiltIn | |
m_unitPrefabsProjectSpecific | |
terrainPaths |
Methods
Name | Description |
---|---|
FindSceneObject(String) | Finds the game object in the scene by name, even if it is inactive. If multiple objects in the scene have the same name, the first one found is used |
GetAllItems() | |
GetAllPrefabObjects() | |
GetAllSceneObjects() | |
GetItem(ItemType) | |
GetItem(String) | |
GetPrefabObject(String) | Returns the scene game object |
GetSceneObject(String) | Returns the scene game object |
InstantiateItem(ItemType) | |
InstantiateItem(String) | |
InstantiatePrefab(String, Vector3, Quaternion) | This is to instantiate a new gameobject from a prefab which is in the scenario prefabs PREFAB |
InstantiateResource(String, RideVector3, RideQuaternion) | Instantiates a gameobject from the asset library |
InstantiateSceneObject(String, Vector3, Quaternion) | This is special code for where we have the GameObject in the scene and we are setting the gameobject active SCENE. |