Add comment for new API Director::setChildrenIndexerEnabled [skip ci]

This commit is contained in:
halx99 2021-11-09 12:15:28 +08:00
parent 402f106d7f
commit 8e2c6f2ceb
1 changed files with 8 additions and 0 deletions

View File

@ -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; }
/**