Click or drag to resize

ASLHelperInstantiateASLObject Method (String, Vector3, Quaternion)

Create an ASL Object - make sure the prefab you are using to create this ASLObject with does NOT already have an ASL script attached to it and that it exists on all user's devices (that it can be found on all devices)

Namespace:  ASL
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public static void InstantiateASLObject(
	string _prefabName,
	Vector3 _position,
	Quaternion _rotation
)

Parameters

_prefabName
Type: SystemString
The name of the prefab to be instantiated. Make sure your prefab is located in the Resources/MyPrefabs folder so it can be found
_position
Type: Vector3
The position where the object will be instantiated
_rotation
Type: Quaternion
The rotation orientation of the object to be instantiated
Examples
void SomeFunction()
{
    ASL.ASLHelper.InstantiateASLObject("MyPrefab", new Vector3(0, 0, 0), Quaternion.identity);
}
See Also