Start Page » DEMoCap: Drag[en]gine Motion Capture » XML Element Classes » ECBCopyObject
Behavior adding support to copy object.
It is recommended to always add this behavior in an element class to allow cloning it.
This behavior can be used only once on an element.
Element class properties have the prefix copyObject.
.
This behavior has no events.
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 ECBCopyObject copyObject func new() copyObject = ECBCopyObject.new(this) 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='ECBCopyObject'/> </elementClass>