how to use addBehavior function ? , i can see it in the documentation but it's not saying much ,
a simple example would be highly appreciated
how to use addBehavior function ? , i can see it in the documentation but it's not saying much ,
a simple example would be highly appreciated
Sure. It's the same thing you do when you create a scene object with behaviors, except that you don't pass the behavior name into the SceneObject's constructor, but add it later using SceneObject.addBehavior().
I've added this code snippet for you.