Hello
Getting back to wade after a long time, I can see in the new tutorials taht you use _ (underscore) a lot, but I cant understand what it means? Like _.myObject you do this alot, can you explain what it does?
Hello
Getting back to wade after a long time, I can see in the new tutorials taht you use _ (underscore) a lot, but I cant understand what it means? Like _.myObject you do this alot, can you explain what it does?
Hi tumble
The underscore notation is just a short way of saying wade.getSceneObject. So if you have an object in your scene that is named, for example, mario, instead of doing
var mario = wade.getSceneObject('mario');
mario.moveTo(100, 200, 20);
With the newer versions of Wade you can do:
_.mario.moveTo(100, 200, 20);