Jump to content

Freeze Window on LoadModel


MarKli
 Share

Go to solution Solved by Josh,

Recommended Posts

 

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?

 

 

Link to comment
Share on other sites

 

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?

 

 

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...