Start Page » DragonScript Scripting Language » Behavior Elements: Quick and Easy Development » ECBehaviorVRPlayspace
Behavior in action
Behavior element behavior adding VR Playspace support to actor. This behavior defines the VR Playspace. This is used as reference coordinate system. The playspace position and orientation matches the owner element position and orientation.
This behavior can be used only once on an element.
This behavior has no element class properties.
This behavior does not require other behaviors to be present.
This behavior does not support optional behaviors.
This behavior does not use persistency.
Since DragonScript Module Version 1.6
The following example creates an element class with VR support:
class MyElement extends BehaviorElementClass public func new() var ECBehaviorVRPlayspace vrPlayspace = ECBehaviorVRPlayspace.new(this) // Other behaviors typically need vrPlayspace as required behavior end end