Variables
Const Deactivating
Deactivating: number = 1 << 8
Const Destroyed
Destroyed: number = 1 << 0
Const Destroyed
Destroyed
: Flags = CCObject.Flags.Destroyed
Const Destroying
Destroying: number = 1 << 7
Const Dirty
Dirty: number = 1 << 5
Const DontDestroy
DontDestroy: number = 1 << 6
Const DontSave
DontSave: number = 1 << 3
Const EditorOnly
EditorOnly: number = 1 << 4
Const HideInHierarchy
HideInHierarchy: number = 1 << 10
Const IsAnchorLocked
IsAnchorLocked: number = 1 << 19
Const IsEditorOnEnableCalled
IsEditorOnEnableCalled: number = 1 << 12
Const IsOnEnableCalled
IsOnEnableCalled: number = 1 << 11
Const IsOnLoadCalled
IsOnLoadCalled: number = 1 << 14
Const IsOnLoadStarted
IsOnLoadStarted: number = 1 << 15
Const IsPositionLocked
IsPositionLocked: number = 1 << 21
Const IsPreloadStarted
IsPreloadStarted: number = 1 << 13
Const IsRotationLocked
IsRotationLocked: number = 1 << 17
Const IsScaleLocked
IsScaleLocked: number = 1 << 18
Const IsSizeLocked
IsSizeLocked: number = 1 << 20
Const IsStartCalled
IsStartCalled: number = 1 << 16
Const LockedInEditor
LockedInEditor: number = 1 << 9
Const PersistentMask
PersistentMask: number = ~(ToDestroy | Dirty | Destroying | DontDestroy | Deactivating |IsPreloadStarted | IsOnLoadStarted | IsOnLoadCalled | IsStartCalled |IsOnEnableCalled | IsEditorOnEnableCalled |IsRotationLocked | IsScaleLocked | IsAnchorLocked | IsSizeLocked | IsPositionLocked/*RegisteredInEditor*/)
Const PersistentMask
Persistent
Mask: Flags = CCObject.Flags.PersistentMask
Const RealDestroyed
RealDestroyed: number = 1 << 1
Const ToDestroy
ToDestroy: number = 1 << 2
Let deferredDestroyTimer
deferredDestroyTimer: null = null
Const objectsToDestroy
objectsToDestroy: any = []
Const objsToClearTmpVar
objsToClearTmpVar: any = []
Const prototype
prototype
: CCObject = CCObject.prototype
Invoke _instantiate method if supplied. The _instantiate callback will be called only on the root object, its associated object will not be called.
If supplied, _instantiate just need to initialize the instantiated object, no need to create new object by itself.
The instantiated object.