Class MagicLeapLoaderUI
Implements
Inherited Members
Namespace: UnityEditor .XR.MagicLeap
Assembly: UnityEditor.XR.MagicLeap.dll
Syntax
[XRCustomLoaderUI("UnityEngine.XR.MagicLeap.MagicLeapLoader", BuildTargetGroup.Android)]
public class MagicLeapLoaderUI : IXRCustomLoaderUI
Fields
m_IconSize
Declaration
protected Vector2 m_IconSize
Field Value
Type | Description |
---|---|
Vector2 |
renderLineHeight
Declaration
protected float renderLineHeight
Field Value
Type | Description |
---|---|
float |
Properties
ActiveBuildTargetGroup
Allows XR Plug-in Management to tell the UI which build target group it's being used with.
Declaration
public BuildTargetGroup ActiveBuildTargetGroup { get; set; }
Property Value
Type | Description |
---|---|
Build |
Build target that this instance handles. |
IncompatibleLoaders
Currently, we don't have any Incompatible loaders with Magic Leap. If we do run into any, we add the names of the loaders here.
Declaration
public string[] IncompatibleLoaders { get; }
Property Value
Type | Description |
---|---|
string[] |
IsLoaderEnabled
Current enabled state of this loader.
Declaration
public bool IsLoaderEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool | True if the loader has been enabled, false otherwise. |
RequiredRenderHeight
The height of the area within the UI that this renderer will need to render its UI. This height will be the height of the rect passed into the On
Declaration
public float RequiredRenderHeight { get; protected set; }
Property Value
Type | Description |
---|---|
float | Non-zero multiple of the line height set in Set |
Methods
CalculateRectForContent(float, float, GUIStyle, GUIContent)
Declaration
protected Rect CalculateRectForContent(float xMin, float yMin, GUIStyle style, GUIContent content)
Parameters
Type | Name | Description |
---|---|---|
float | xMin | |
float | yMin | |
GUIStyle | style | |
GUIContent | content |
Returns
Type | Description |
---|---|
Rect |
OnGUI(Rect)
Call to render the UI for this custom loader.
Declaration
public void OnGUI(Rect rect)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect | The rect within which the UI should render into. |
SetRenderedLineHeight(float)
The Rendering component passes the expected line height to the custom renderer. This allows the component to
calculate the necessary area height required to render the custom UI into the component space. The calculated value should
be returned from the Unity
Declaration
public void SetRenderedLineHeight(float height)
Parameters
Type | Name | Description |
---|---|---|
float | height |