Hello!
Urho3D is taken from master branch.
I experience a problem with UI. If UI is loaded from an XML file I can’t modify it. For example,
ResourceCache * cache = GetSubsystem();
XMLFile * f = cache->GetResource( “UI/DesignSave.xml” );
UI * ui = GetSubsystem();
UIElement * uiRoot = ui->GetRoot();
SharedPtr e = ui->LoadLayout( f );
ui->GetRoot()->AddChild( e );
e->RemoveAllChildren(); // This line does internally clears “children_” array. But visually window remains unchanged.
The same happens when I try to add UI elements into a window loaded from an XML file. However, If I create a UI without loading it from a file it works fine.
Would one, please, let me know what might be wrong.
Thank you!