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

Both sides previous revisionPrevious revision
dragengine:modules:dragonscript:behavior_vrhmd [2024/03/14 16:57] dragonlorddragengine:modules:dragonscript:behavior_vrhmd [2025/03/12 23:00] (current) dragonlord
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 42: Line 52:
 #@LinkApiDocDEDS2_HTML~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.txt · Last modified: 2025/03/12 23:00 by dragonlord