C# Класс UnityEngine.XR.MagicLeap.Planes

Planes is a MonoBehaviour meant to handle all communication with the ML API including querying, parameter construction and callback information.
Наследование: MonoBehaviour
Показать файл Открыть проект

Открытые методы

Метод Описание
DoesPlaneHaveFlag ( UnityEngine.XR.MagicLeap.MLWorldPlane plane, OrientationFlags flag ) : bool

Utility function used to determine if the passed in MLWorldPlane object's flags contain the passed in OrientationFlags.

DoesPlaneHaveFlag ( UnityEngine.XR.MagicLeap.MLWorldPlane plane, SemanticFlags flag ) : bool

Utility function used to determine if the passed in MLWorldPlane object's flags contain the passed in SemanticFlags.

OnDisable ( ) : void

Stops and destroys plane polling

OnEnable ( ) : void

Initializes variables and makes sure they started correctly

OnValidate ( ) : void
Update ( ) : void

Updates planes

Приватные методы

Метод Описание
HandleOnReceivedPlanes ( UnityEngine.XR.MagicLeap.MLResult result, Array planes, Array boundaries ) : void

Handles the result that is recieved from the query to the Planes API. The resulting status of the query The planes recieved from the query The boundaries recieved from the query

QueryPlanes ( ) : bool

Queries the Planes API with all of the set query flags and parameters and sets the Planes[] when finished. Based on the query flags that are passed in, extraction and calculation times may vary.

Описание методов

DoesPlaneHaveFlag() публичный статический Метод

Utility function used to determine if the passed in MLWorldPlane object's flags contain the passed in OrientationFlags.
public static DoesPlaneHaveFlag ( UnityEngine.XR.MagicLeap.MLWorldPlane plane, OrientationFlags flag ) : bool
plane UnityEngine.XR.MagicLeap.MLWorldPlane The MLWorldPlane object to be checked
flag OrientationFlags The OrientationFlags to be checked
Результат bool

DoesPlaneHaveFlag() публичный статический Метод

Utility function used to determine if the passed in MLWorldPlane object's flags contain the passed in SemanticFlags.
public static DoesPlaneHaveFlag ( UnityEngine.XR.MagicLeap.MLWorldPlane plane, SemanticFlags flag ) : bool
plane UnityEngine.XR.MagicLeap.MLWorldPlane The MLWorldPlane object to be checked
flag SemanticFlags The SemanticFlags to be checked
Результат bool

OnDisable() публичный Метод

Stops and destroys plane polling
public OnDisable ( ) : void
Результат void

OnEnable() публичный Метод

Initializes variables and makes sure they started correctly
public OnEnable ( ) : void
Результат void

OnValidate() публичный Метод

public OnValidate ( ) : void
Результат void

Update() публичный Метод

Updates planes
public Update ( ) : void
Результат void