OpenXRMlMarkerUnderstandingManager

Experimental: Marked as experimental due to lack of community validation on Magic Leap devices.

Inherits: Node

Provides an easy-to-use way to interact with Magic Leap's Marker.

Description

Provides an easy-to-use way to interact with Magic Leap's Marker.

Markers are detected by adding OpenXRMlMarkerDetector nodes to the scene tree.

This node instantiates a scene to represent the virtual objects located at those markers. Each instantiated scene will be added as a child of an XRAnchor3D node that will be positioned using tracking data from the headset.

Properties

PackedScene

scene

StringName

scene_setup_method

&"setup_scene"

bool

visible

true

Methods

void

hide ( )

void

show ( )


Property Descriptions

PackedScene scene

  • void set_scene ( PackedScene value )

  • PackedScene get_scene ( )

The scene to be instantiated automatically for each marker.


StringName scene_setup_method = &"setup_scene"

  • void set_scene_setup_method ( StringName value )

  • StringName get_scene_setup_method ( )

The method that will be called on scenes after they have been instantiated for a marker.

The method will be called with a single OpenXRMlMarkerTracker argument, representing the marker.


bool visible = true

  • void set_visible ( bool value )

  • bool get_visible ( )

Controls the visibility of the XRAnchor3D nodes managed by this node.


Method Descriptions

void hide ( )

Hides all markers tracked by this manager.


void show ( )

Shows all markers tracked by this manager.