Documentation
¶
Overview ¶
This node will display an OpenXR render model by accessing the associated GLTF and processes all animation data (if supported by the XR runtime).
Render models were introduced to allow showing the correct model for the controller (or other device) the user has in hand, since the OpenXR action map does not provide information about the hardware used by the user. Note that while the controller (or device) can be somewhat inferred by the bound action map profile, this is a dangerous approach as the user may be using hardware not known at time of development and OpenXR will simply simulate an available interaction profile.
Index ¶
- type Advanced
- type Any
- type Extension
- type ID
- type Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsNode3D() Node3D.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsOpenXRRenderModel() Instance
- func (self Instance) GetTopLevelPath() string
- func (self Instance) ID() ID
- func (self Instance) OnRenderModelTopLevelPathChanged(cb func(), flags ...Signal.Flags)
- func (self Instance) RenderModel() RID.RenderModel
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetRenderModel(value RID.RenderModel)
- func (self Instance) Virtual(name string) reflect.Value
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 Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsOpenXRRenderModel ¶
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.OpenXRRenderModel
Instance of the class with convieniently typed arguments and results.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsOpenXRRenderModel ¶
func (Instance) GetTopLevelPath ¶
Returns the top level path related to this render model.
func (Instance) OnRenderModelTopLevelPathChanged ¶
func (Instance) RenderModel ¶
func (self Instance) RenderModel() RID.RenderModel
func (Instance) SetRenderModel ¶
func (self Instance) SetRenderModel(value RID.RenderModel)