User Tools

Site Tools


dragengine:modules:dragonscript:behavior_vrhmd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dragengine:modules:dragonscript:behavior_vrhmd [2021/09/15 13:01] – / dragonlorddragengine:modules:dragonscript:behavior_vrhmd [2025/03/13 17:18] (current) dragonlord
Line 1: Line 1:
 {{tag>dragonscript behavior}} {{tag>dragonscript behavior}}
 <WRAP youarehere> <WRAP youarehere>
-[[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[abstractions#behavior_elementsquick_and_easy_development|Behavior Elements: Quick and Easy Development]] >> **ECBehaviorRenderableCustomColor**+[[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[dragengine:modules:dragonscript:abstractions|Abstraction Layers: How you want to build your Game]] >> [[dragengine:modules:dragonscript:behavior_elements|Behavior Elements]] >> **ECBehaviorRenderableCustomColor**
 </WRAP> </WRAP>
  
Line 25: Line 25:
  
 This behavior has no element class properties. This behavior has no element class properties.
 +
 +====== Events ======
 +
 +===== hmdAttached =====
 +
 +HMD attached and ready to use.
 +
 +===== hmdDetached =====
 +
 +HMD detached and no more usable.
  
 ====== Required Behaviors ====== ====== Required Behaviors ======
Line 40: Line 50:
 ====== API Documentation ====== ====== API Documentation ======
  
-[[https://developer.dragondreams.ch/docs/dragonscript/scriptapi/latest/classDragengine_1_1Scenery_1_1ECBehaviorVRHMD.html|ECBehaviorVRHMD]].+#@LinkApiDocDEDS2_HTML~classDragengine_1_1Scenery_1_1ECBehaviorVRHMD.html,ECBehaviorVRHMD~@#.
  
-Since DragonScript Module Version **1.6**+Since DragonScript Module Version ''1.6''
  
 ====== Use Cases ====== ====== Use Cases ======
Line 63: Line 73:
   end   end
 end end
 +</code>
 +
 +====== Behavior Factory ======
 +
 +Using element class supporting adding behaviors the behavior can be added like this:
 +<code xml>
 +<?xml version='1.0' encoding='UTF-8'?>
 +<elementClass name='MyClass' class='GenericBehaviorElement'>
 +  <behavior type='ECBehaviorVRPlayspace'/>
 +  
 +  <behavior type='ECBehaviorVRHMD'>
 +    <!-- set element properties. omit property prefix if used inside behavior tag -->
 +    <string name='.name'>value</string>
 +  </behavior>
 +</elementClass>
 </code> </code>
  
dragengine/modules/dragonscript/behavior_vrhmd.1631710878.txt.gz · Last modified: 2021/09/15 13:01 by dragonlord