Sprite Factory

ReadMe
Release Notes
Overview
Using the Editor
Upgrading

Concepts
Sprites
Master Sprites
Sprite Groups
Colliders
Locators
Material Sets
SpriteUpdater
SpriteCamera

Advanced
Working in Multiple Projects

Classes
Runtime Classes

Videos
Overview
Creating Sprites
Sprite Inspector
Frame Events
Collision System
Locator System
Material Sets

Links
Sprite Factory Site
Web Documentation
Support
Contact

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.