Leith
I have exported a static object “by node” to an xml file.
When I instantiate the object using Scene::InstantiateXML, I get an error message in the console about my xml file not being a valid model.
The call returns successfully - the returned node has a staticmodel component with a valid model resource which works in the scene perfectly…
if(ModelName.EndsWith(".xml"))
{
auto e = cache->GetResource<XMLFile>(ModelName)->GetRoot();
Node* newnode = node_->GetScene()->InstantiateXML(e,Vector3::ZERO, Quaternion::IDENTITY);