diff --git a/cocos/base/CCDirector.h b/cocos/base/CCDirector.h index 90c072c5d1..468acc7d84 100644 --- a/cocos/base/CCDirector.h +++ b/cocos/base/CCDirector.h @@ -503,7 +503,15 @@ public: */ const std::thread::id& getCocos2dThreadId() const { return _cocos2d_thread_id; } + /** Enable node tree children indexer map, the concept is like database INDEX + * Notes: + * If enable is true: will cost more memory to speed up getChildByTag & getChildByName + */ void setChildrenIndexerEnabled(bool enable) { _childrenIndexerEnabled = enable; } + + /** + * returns whether or not node tree children indexer map enabled + */ bool isChildrenIndexerEnabled() const { return _childrenIndexerEnabled; } /**