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.Sprite.SetActiveRecursively

C#: void SetActiveRecursively (bool state)
JS: function SetActiveRecursively (state : boolean) : void

Description
Set active state on Sprite and all children recursively.

If you need to set the active state on an entire Sprite hierarchy, it's better to call it through this function than through GameObject.SetActiveRecursively() because Sprite automatically activates/deactivates only the necessary child objects (display meshes, colliders, locators, etc.) for the current state of the Sprite.

Version Note
In Unity 4.0+, this function just calls GameObject.SetActive(state).