{{tag>motioncapture democap behavior}}
[[:start|Start Page]] >> [[main|DEMoCap: Drag[en]gine Motion Capture]] >> [[democap:elementclasses|XML Element Classes]] >> ** ECBAnimated **
====== ECBAnimated ======
Behavior extending ECBehaviorAnimated to allow user to edit certain parameters using a gui panel.
====== Instance Counts ======
This behavior can be used only once on an element.
====== Element Class Properties ======
Element class properties have the prefix ''animated.''.
====== Events ======
This behavior has no events.
====== Conversation Commands ======
This behavior adds no conversation commands.
====== Conversation Conditions ======
This behavior adds no conversation conditions.
====== Behavior Tree Actions ======
This behavior adds no behavior tree actions.
====== Behavior Tree Conditions ======
This behavior adds no behavior tree conditions.
====== Required Behaviors ======
* [[dragengine:modules:dragonscript:behavior_animated|ECBehaviorAnimated]]
* [[behavior_ecbbehaviorguipanels|ECBBehaviorGuiPanels]]
====== Optional Behaviors ======
This behavior does not support optional behaviors.
====== API Documentation ======
Since DEMoCap Version ''1.3''
====== Use Cases ======
* Allow editing certain parameters in a gui panel.
====== Element Class Example ======
class MyElement extends BehaviorElementClass
public var ECBBehaviorGuiPanels guiPanels
public var ECBehaviorComponent component
public var ECBehaviorAnimated animated
public var ECBAnimated ecbAnimated
func new()
component = ECBehaviorComponent.new(this, null)
animated = ECBehaviorAnimated.new(this, component)
guiPanels = ECBBehaviorGuiPanels.new(this)
ecbAnimated = ECBAnimated.new(this, guiPanels, animated)
end
end
====== Behavior Factory ======
Using element class supporting adding behaviors the behavior can be added like this (again create an example which creates a valid element class):
====== Live Examples ======