Start Page » DEMoCap: Drag[en]gine Motion Capture » XML Element Classes » ECBSelectable
Behavior adding support for element to be selected. Selection tracker is present in the game application. Only one element can be selected at each time or none at all.
It is mandatory to add this behavior otherwise the user can not add an instance of this object to the scene.
This behavior can be used only once on an element.
Element class properties have the prefix selectable.
.
Object has been selected.
Object has been deselected.
This behavior adds no conversation commands.
This behavior adds no conversation conditions.
This behavior adds no behavior tree actions.
This behavior adds no behavior tree conditions.
This behavior requires no other behaviors.
This behavior does not support optional behaviors.
Since DEMoCap Version 1.3
class MyElement extends BehaviorElementClass public var ECBSelectable selectable func new() selectable = ECBSelectable.new(this, component) end end
Using element class supporting adding behaviors the behavior can be added like this (again create an example which creates a valid element class):
<?xml version='1.0' encoding='UTF-8'?> <elementClass name='MyClass' class='GenericBehaviorElement'> <behavior type='ECBSelectable'/> </elementClass>