I created an IEntity object. Its name is var
But nothing happened. I mean, I can see the UI object but when I trigger the function that runs SetScale, object does not expand. Can somebody tell why?
Code: Select all
var = gEnv->pEntitySystem->SpawnEntity(blablabla); var->LoadGeometry(0, "objects/bla.cgf"); var->SetMaterial(gEnv->p3DEngine->GetMaterialManager()->LoadMaterial("objects/bla")); // In another function, this is called var->SetScale(Vec3(2.f, 2.f, 2.f));