Start Page » DEMoCap: Drag[en]gine Motion Capture » XML Element Classes » ECBTemporaryGhost
Behavior adding support to temporarily display object as ghost. If enabled replaces all component textures with ghost texture. If disabled restored previous textures.
This behavior can be used only once on an element.
Element class properties have the prefix temporaryGhost.
.
Path of skin resource to use if enabled.
temporaryGhost.skin
/content/materials/ghost/ghost.deskin
*.deskin
<string name='temporaryGhost.skin'>/content/materials/ghost/ghost.deskin</string>
Enabled changed.
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 ECBehaviorComponent component public var ECBTemporaryGhost temporaryGhost func new() component = ECBehaviorComponent.new(this, null) temporaryGhost = ECBTemporaryGhost.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='ECBehaviorComponent'/> <behavior type='ECBBehaviorGuiPanels'/> <behavior type='ECBTemporaryGhost'> <!-- optional: list of components to apply ghost to. default is behavior with empty string if present. --> <list name='components'> <string/> <string>second</string> </list> <!-- set element properties. omit property prefix if used inside behavior tag --> <string name='.skin'>/content/materials/ghost/ghost.deskin</string> </behavior> </elementClass>