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
파일 보기 프로젝트 열기: space10-community/changing-colours-in-mixed-reality

공개 메소드들

메소드 설명
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