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.Locator.SetActive

C#: void SetActive (bool active, [bool setActiveOnFirstLevelChildren = true])
JS: function SetActive (active : boolean, setActiveOnFirstLevelChildren : boolean) : void

Description
Set active state on the locator.

setActiveOnFirstLevelChildren sets the active state on the first-level children of the locator as well.

This function is primarily for internal purposes and you should not need to call it.

Version Note
In Unity 4.0+, setActiveOnFirstLevelChildren has no effect as setting active on the parent object will activate children as well.