Table of Contents

, ,

Start Page » DEMoCap: Drag[en]gine Motion Capture » XML Element Classes » ECBHideCondition

ECBHideCondition

Behavior hide component if condition is true. User can change conditions.

Instance Counts

This behavior can be used only once on an element.

Element Class Properties

Element class properties have the prefix hideCondition..

live

Hide object while not recording, playing back or preparing to record. Basically this hides the object while setting up the scene for motion capture.

playback

Hide object during playing back.

record

Hide object during recording.

Events

hideObject

Determine if object has to be hidden. Object is hidden if one or more listeners return true.

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

Optional Behaviors

This behavior does not support optional behaviors.

API Documentation

Since DEMoCap Version 1.3

Use Cases

Element Class Example

class MyElement extends BehaviorElementClass
  public var ECBHideCondition hideCondition
  func new()
    hideCondition = ECBHideCondition.new(this)
  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):

<?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>

Live Examples