View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Useful Code Snippets

Iterate through all entities

EntityIterator it = SceneManager::getSingleton().getEntitityIterator(); 
Entity found = NULL, cur; 
while (it->hasMoreElements()) 
{ 
    cur = it->peekNextValue(); 
    if (cur->getName() == "thesearchedname") 
    { 
        found = cur; 
        break; 
    } 

    it->moveNext(); 
} 
found->doWhatEverYouLikeToDoWithThisEntity(); 


Link to this Page