Table of Contents

,

Start Page » DragonScript Scripting Language » Behavior Elements: Quick and Easy Development » ECBehaviorVRPlayspace

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.

Instance Counts

This behavior can be used only once on an element.

Element Class Properties

This behavior has no element class properties.

Required Behaviors

This behavior does not require other behaviors to be present.

Optional Behaviors

This behavior does not support optional behaviors.

Persistency

This behavior does not use persistency.

API Documentation

ECBehaviorVRPlayspace.

Since DragonScript Module Version 1.6

Use Cases

Element Class Example

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

Live Examples