Jump to content

Freeze Window on LoadModel


Go to solution Solved by Josh,

Recommended Posts

Posted

 

Hello, I'm new here.

Wanted to ask mall how to delete an added component. Since I have a problem because I added it to a model.

I have a short example here of how it freezes:
	Meshes[0] = LoadModel(curWorld, FileModel1);
	auto comp = Meshes[0]->AddComponent<Mover>();
	comp->rotationspeed.y = 5;
	Meshes[0]->Clear();
	Meshes[0] = LoadModel(curWorld, FileModel2);

 

I clean the model with the Clear() command, don't I? It works without the componet. Or is that a bug?

 

 

  • Solution
Posted

There is currently no mechanism to remove a component. Maybe you just want to disable it?

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

 

I have it without component at the moment, will only use it for certain things.

But in the future it would be nice to know how to disable a component.

 

 

I have one more question, does SetMappingScale not work at the moment?

 

 

Posted

I think that is something I have not made a final decision yet on how it should work...

My job is to make tools you love, with the features you want, and performance you can't live without.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...