I don’t know why it can be print only twice,then it become “null”
here is my project link:https://playcanvas.com/project/631913/overview/modelviewerstarerkit
this.wheelhub00
is referencing to an entity object at first and then is assigned the value false in the function activeWheelHub1
which makes it null.
Oh,Thx:) I will try it again
So I can’t control the appearance and hiding of the model?
You can. The easiest method is to disable/enable the entity.
I have a feeling that you really wanted:
this.wheelhub00.enabled = false
thx for your reply:)