Skip to main content
Version: 20 Mar 2024

MagicLeapCamera

NameSpace: MagicLeap

MonoBehaviour class representing the Magic Leap camera

Inherits from:
MonoBehaviour

Public Fields

EnforceFarClip


public bool EnforceFarClip { get; set; }


ProtectedSurface

Getter/Setter for setting the Protected surface attribute.


public bool ProtectedSurface { get; set; }


RecenterXROriginAtStart


public bool RecenterXROriginAtStart { get; set; }


StereoConvergencePoint

Getter/Setter for the stereo convergence point


public Transform StereoConvergencePoint { get; set; }


Public Methods

void CheckForClipPlaneSettingChange

public void CheckForClipPlaneSettingChange()

float ClampToClippingPlanes

Clamp a given value to the near and far clip planes

public float ClampToClippingPlanes(
float value
)

Parameters

TypeNameDescription
floatvalueValue to clamp

Returns: Clamped value


void ValidateFarClip

Validate the Far Clip plane

public void ValidateFarClip()