SpriteFactory.SpriteUpdater.InstantiateSprite
C#: GameObject InstantiateSprite (GameObject original)
JS: function InstantiateSprite (original : GameObject) : GameObject
Description
Instantiate a GameObject and add all Sprite components in hierarchy to SpriteUpdater.
This function preserves the position and rotation of the cloned object.
Returns the instantiated GameObject.
C#: GameObject InstantiateSprite (GameObject original, Vector3 position, Quaternion rotation)
JS: function InstantiateSprite (original : GameObject, position : Vector3, rotation : Quaternion) : GameObject
Description
Instantiate a GameObject and add all Sprite components in hierarchy to SpriteUpdater.
Clones the object original, places it at position and sets the rotation to rotation, then returns the cloned object.
Returns the instantiated GameObject.