{{tag>motioncapture democap behavior}}
[[:start|Start Page]] >> [[main|DEMoCap: Drag[en]gine Motion Capture]] >> [[democap:elementclasses|XML Element Classes]] >> ** ECBTemporaryGhost **
====== ECBTemporaryGhost ======
Behavior adding support to temporarily display object as ghost. If enabled replaces all component textures with ghost texture. If disabled restored previous textures.
====== Instance Counts ======
This behavior can be used only once on an element.
====== Element Class Properties ======
Element class properties have the prefix ''temporaryGhost.''.
===== skin =====
Path of skin resource to use if enabled.
  * Full name: ''temporaryGhost.skin''
  * Type: string
  * Default Value: ''/content/materials/ghost/ghost.deskin''
  * Expected File Type: ''*.deskin''
  * Example (*.deeclass) /content/materials/ghost/ghost.deskin
====== Events ======
===== enabledChanged =====
Enabled changed.
====== 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 ======
  * [[dragengine:modules:dragonscript:behavior_component|ECBehaviorComponent]]
  * [[behavior_ecbbehaviorguipanels|ECBBehaviorGuiPanels]]
====== Optional Behaviors ======
This behavior does not support optional behaviors.
====== API Documentation ======
Since DEMoCap Version ''1.3''
====== Use Cases ======
  * Temporarily replace textures of object to see through.
====== Element Class Example ======
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
====== 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):
  
  
  
  
    
    
      
      second
    
    
    
    /content/materials/ghost/ghost.deskin
  
====== Live Examples ======