unreal.MagicLeapPlaneResult

class unreal.MagicLeapPlaneResult(plane_position=[0.0, 0.0, 0.0], plane_orientation=[0.0, 0.0, 0.0], content_orientation=[0.0, 0.0, 0.0], plane_dimensions=[0.0, 0.0], plane_flags=[], id=[], inner_id=[])

Bases: unreal.StructBase

Represents a plane returned from the ML-API.

C++ Source:

  • Plugin: MagicLeap

  • Module: MagicLeapPlanes

  • File: MagicLeapPlanesTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • content_orientation (Rotator): [Read-Write] Orientation of the content with its up-vector orthogonal to the plane.

  • id (Guid): [Read-Write] ID of the plane result. This ID is persistent across queries

  • inner_id (Guid): [Read-Write] ID of the inner plane. This ID is persistent across queries

  • plane_dimensions (Vector2D): [Read-Write] Width and height of the plane (in Unreal units).

  • plane_flags (Array(MagicLeapPlaneQueryFlags)): [Read-Write] The flags which describe this plane. TODO: Should be a TSet but that is misbehaving in the editor.

  • plane_orientation (Rotator): [Read-Write] Orientation of the plane.

  • plane_position (Vector): [Read-Write] Position of the center of the plane in world coordinates.

property content_orientation

[Read-Write] Orientation of the content with its up-vector orthogonal to the plane.

Type

(Rotator)

property id

[Read-Only] ID of the plane result. This ID is persistent across queries

Type

(Guid)

property inner_id

[Read-Only] ID of the inner plane. This ID is persistent across queries

Type

(Guid)

property plane_dimensions

[Read-Write] Width and height of the plane (in Unreal units).

Type

(Vector2D)

property plane_flags

Should be a TSet but that is misbehaving in the editor.

Type

(Array(MagicLeapPlaneQueryFlags))

Type

[Read-Write] The flags which describe this plane. TODO

property plane_orientation

[Read-Write] Orientation of the plane.

Type

(Rotator)

property plane_position

[Read-Write] Position of the center of the plane in world coordinates.

Type

(Vector)