Stride Forums Archive

How can remove/hide entity from visualization from code

5 posts, 2573 views, 2015-08-13 to 2016-10-09

byrakham (Roman Buriak) 2015-08-13 #1

I try to use this.SceneSystem.SceneInstance.Remove(this.Entity);
but I think i need remove script too…I dont know how can hide or remove entity for rendering. Please help me.

xenux 2015-08-28 #2

Hello,

What about Entity.Get<ModelComponent>.Enabled = false; ?

byrakham (Roman Buriak) 2015-09-07 #3 in reply to #2

Hi,
Thank you a lot, it is worked.

Timurid 2016-10-01 #4

Lets get to some necromancy!

How about an empty invisible entity that I want to use for hiding all of its children?

MehdiSaffar (Mehdi Saffar) 2016-10-09 #5 in reply to #4

This is exactly what I am looking for. Any idea?