# Candera Behavior

#### Added support for Behaviors.

Behaviors have been added to support application development with considering the hierarchy of the scene graphs. Behaviors are small application building blocks that allow the user to create their own application handling. Being similar to Widgets Behaviors have the advantage that they can rely on hierarchical information, as every [Behavior](http://dev.doc.cgistudio.at/APILINK/class_candera_1_1_behavior.html "Behaviors are small re-usable functional blocks that communicate via events. Behaviors are based on W...") has to be attached to a node in the scene graph. By design they can be implemented in such a way that one behavior can even be reused for both 2D and 3D, if no special functionality of the [Node](http://dev.doc.cgistudio.at/APILINK/class_candera_1_1_node.html "The class Node is an abstract base class for all scene graph nodes. Each Node defines a local coordin...") below has to be used. Behaviors also support event handling through mechanisms for event routing (to other behaviors) and having a base interface ([Behavior::OnEvent](http://dev.doc.cgistudio.at/APILINK/group___behavior_base.html#ga70f74ac5da12a27f11a28e55b2aab429)) to handle events.

---