Start Page » DEMoCap: Drag[en]gine Motion Capture » XML Element Classes » ECBHideCondition
Behavior hide component if condition is true. User can change conditions.
This behavior can be used only once on an element.
Element class properties have the prefix hideCondition.
.
Hide object while not recording, playing back or preparing to record. Basically this hides the object while setting up the scene for motion capture.
hideCondition.live
false
<boolean name='hideCondition.live'>false</boolean>
Hide object during playing back.
hideCondition.playback
true
<boolean name='hideCondition.playback'>true</boolean>
Hide object during recording.
hideCondition.record
true
<boolean name='hideCondition.record'>true</boolean>
Determine if object has to be hidden. Object is hidden if one or more listeners return true
.
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 does not support optional behaviors.
Since DEMoCap Version 1.3
class MyElement extends BehaviorElementClass public var ECBHideCondition hideCondition func new() hideCondition = ECBHideCondition.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='ECBHideCondition'> <!-- set element properties. omit property prefix if used inside behavior tag --> <boolean name='.record'>true</boolean> </behavior> </elementClass>