User Tools

Site Tools


dragengine:modules:dragonscript:behavior_vrplayspace

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_vrplayspace [2021/09/15 12:55] – created dragonlorddragengine:modules:dragonscript:behavior_vrplayspace [2025/03/12 23:02] (current) dragonlord
Line 25: Line 25:
  
 This behavior has no element class properties. This behavior has no element class properties.
 +
 +====== Events ======
 +
 +===== playspaceGeometryChanged =====
 +
 +Playspace position or orientation changed.
  
 ====== Required Behaviors ====== ====== Required Behaviors ======
Line 40: Line 46:
 ====== API Documentation ====== ====== API Documentation ======
  
-[[https://developer.dragondreams.ch/docs/dragonscript/scriptapi/latest/classDragengine_1_1Scenery_1_1ECBehaviorVRPlayspace.html|ECBehaviorVRPlayspace]].+#@LinkApiDocDEDS2_HTML~classDragengine_1_1Scenery_1_1ECBehaviorVRPlayspace.html,ECBehaviorVRPlayspace~@#.
  
-Since DragonScript Module Version **1.6**+Since DragonScript Module Version ''1.6''
  
 ====== Use Cases ====== ====== Use Cases ======
Line 60: Line 66:
   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'>
 +    <!-- set element properties. omit property prefix if used inside behavior tag -->
 +    <string name='.name'>value</string>
 +  </behavior>
 +</elementClass>
 </code> </code>
  
dragengine/modules/dragonscript/behavior_vrplayspace.1631710507.txt.gz · Last modified: 2021/09/15 12:55 by dragonlord