Merge pull request #2249 from VisualSJ/master

Add  node locked flag
This commit is contained in:
Jare Guo
2018-01-12 17:15:33 +08:00
committed by GitHub
+10
View File
@@ -12,6 +12,7 @@ var Dirty = 1 << 5;
var DontDestroy = 1 << 6;
var Destroying = 1 << 7;
var Deactivating = 1 << 8;
var LockedInEditor = 1 << 9;
//var HideInGame = 1 << 9;
//var HideInEditor = 1 << 10;
@@ -109,6 +110,15 @@ JS.value(CCObject, 'Flags', {
*/
Deactivating,
/**
* !#en The lock node, when the node is locked, cannot be clicked in the scene.
* !#zh 锁定节点,锁定后场景内不能点击
*
* @property LockedInEditor
* @private
*/
LockedInEditor,
///**
// * !#en
// * Hide in game and hierarchy.