Start a new topic

trackable1.enabled in own function

trackable1.enabled in own function
1 Comment


I've got an problem by setting a tracker to invisible in my own function.

When I click the change button I call "clickedChange":

clickedChange: function() {
        trackable1.enabled = false;
        trackable2.enabled = true;



But I always geht the error: "trackable1 is undefined".
Even when I use "World.trackable1.enabled.

How can I set the state of the trackable in my own function?

I would be very pleased for a hint in the right direction :)


best regards


Login or Signup to post a comment