OpenXRActionSet

package
v0.0.0-...-ae8aae0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package OpenXRActionSet provides methods for working with OpenXRActionSet object instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advanced

type Advanced = class

Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.

type Any

type Any interface {
	gd.IsClass
	AsOpenXRActionSet() Instance
}

type Instance

type Instance [1]gdclass.OpenXRActionSet

Action sets in OpenXR define a collection of actions that can be activated in unison. This allows games to easily change between different states that require different inputs or need to reinterpret inputs. For instance we could have an action set that is active when a menu is open, an action set that is active when the player is freely walking around and an action set that is active when the player is controlling a vehicle. Action sets can contain the same action with the same name, if such action sets are active at the same time the action set with the highest priority defines which binding is active.

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) Actions

func (self Instance) Actions() []any

func (Instance) AddAction

func (self Instance) AddAction(action [1]gdclass.OpenXRAction)

Add an action to this action set.

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsOpenXRActionSet

func (self Instance) AsOpenXRActionSet() Instance

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) AsResource

func (self Instance) AsResource() Resource.Instance

func (Instance) GetActionCount

func (self Instance) GetActionCount() int

Retrieve the number of actions in our action set.

func (Instance) LocalizedName

func (self Instance) LocalizedName() string

func (Instance) Priority

func (self Instance) Priority() int

func (Instance) RemoveAction

func (self Instance) RemoveAction(action [1]gdclass.OpenXRAction)

Remove an action from this action set.

func (Instance) SetActions

func (self Instance) SetActions(value []any)

func (Instance) SetLocalizedName

func (self Instance) SetLocalizedName(value string)

func (Instance) SetPriority

func (self Instance) SetPriority(value int)

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL