Click or drag to resize

ASL_AutonomousObjectHandlerInstantiateAutonomousObject Method (GameObject, ASL_AutonomousObjectHandlerReturnInstantatedObjectCallback)

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. Calls callbackFunction once the object has been instantiated, with the instatiated GameObject as the argument.

Namespace:  ASL
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public void InstantiateAutonomousObject(
	GameObject prefab,
	ASL_AutonomousObjectHandlerReturnInstantatedObjectCallback callbackFunction
)

Parameters

prefab
Type: GameObject
Prefab of GameObject to be instatiated. prefab MUST be located in Resources/MyPrefabs.
callbackFunction
Type: ASLASL_AutonomousObjectHandlerReturnInstantatedObjectCallback
Callback function to be called once the object has been instatiated, with the GameObject as a parameter.
See Also