I don't know why it can be print only twice,then it become "null":(


#1

I don’t know why it can be print only twice,then it become “null”:frowning:
here is my project link:https://playcanvas.com/project/631913/overview/modelviewerstarerkit


#2

I just want to enable target and false target by button.


#3

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.


#4

Oh,Thx:) I will try it again


#5

So I can’t control the appearance and hiding of the model?


#6

You can. The easiest method is to disable/enable the entity.

I have a feeling that you really wanted:
this.wheelhub00.enabled = false


#7

thx for your reply:)