OpenXRIPBinding
Defines a binding between an OpenXRAction
and an XR input or output.
class OpenXRIPBinding
This binding resource binds an OpenXRAction
to inputs or outputs. As most controllers have left hand and right versions that are handled by the same interaction profile we can specify multiple bindings. For instance an action “Fire” could be bound to both “/user/hand/left/input/trigger” and “/user/hand/right/input/trigger”.
Superclasses
class Resource
Base class for serializable objects.
Citizens in SwiftGodot
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Identifiable<ID>
A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable
Types that conform to VariantRepresentable can be stored directly in
Variant
with no conversion. These include all of the Variant types from Godot (for exampleGString
,Rect
,Plane
), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.protocol VariantStorable
Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
Type members
Instance members
var action: OpenXRAction?
OpenXRAction
that is bound to these paths.var paths: PackedStringArray
Paths that define the inputs or outputs bound on the device.
func addPath(String
) Add an input/output path to this binding.
func getPathCount(
) -> Int32 Get the number of input/output paths in this binding.
func hasPath(String
) -> Bool Returns
true
if this input/output path is part of this binding.func removePath(String
) Removes this input/output path from this binding.