| ASL_AutonomousObjectHandlerInstantiateAutonomousObject Method (GameObject) |
Instatiates an ASL_AutonomousObject based on prefab. The caller of this function will be set to the owner of the instatiated ASL_AutonomousObject.
The object is created using the prefab's transform.
Namespace:
ASL
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public void InstantiateAutonomousObject(
GameObject prefab
)
Public Sub InstantiateAutonomousObject (
prefab As GameObject
)
public:
void InstantiateAutonomousObject(
GameObject^ prefab
)
member InstantiateAutonomousObject :
prefab : GameObject -> unit
Parameters
- prefab
- Type: GameObject
Prefab of GameObject to be instatiated. prefab MUST be located in Resources/MyPrefabs.
See Also