how to use addBehavior(behaviorClass)
moayyad

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 

1 Comment
Gio

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.

Post a reply
Add Attachment
Submit Reply
Login to Reply