docs.unity3d.com
    Show / Hide Table of Contents

    Class MARSPlaneVisualizer

    Creates planes as you scan your environment to preview the scanned data MARS has gathered.

    Inheritance
    Object
    MARSPlaneVisualizer
    Namespace: Unity.MARS.Visualizers
    Syntax
    public class MARSPlaneVisualizer : MonoBehaviour, IUsesPlaneFinding, IFunctionalitySubscriber<IProvidesPlaneFinding>, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>, ISimulatable

    Properties

    EdgeSettings

    The edge settings to use when creating planes.

    Declaration
    public PlaneEdgeSettings EdgeSettings { get; set; }
    Property Value
    Type Description
    PlaneEdgeSettings

    PlanePrefab

    Prefab to instantiate when creating planes.

    Declaration
    public GameObject PlanePrefab { get; set; }
    Property Value
    Type Description
    GameObject

    UsePlaneGeometry

    If checked, the planes will match the geometry of the scanned environment; Unchecked will generate square planes.

    Declaration
    public bool UsePlaneGeometry { get; set; }
    Property Value
    Type Description
    Boolean

    Extension Methods

    IUsesCameraOffsetMethods.GetCameraPositionOffset(IUsesCameraOffset)
    IUsesCameraOffsetMethods.SetCameraPositionOffset(IUsesCameraOffset, Vector3)
    IUsesCameraOffsetMethods.GetCameraYawOffset(IUsesCameraOffset)
    IUsesCameraOffsetMethods.SetCameraYawOffset(IUsesCameraOffset, Single)
    IUsesCameraOffsetMethods.GetCameraScale(IUsesCameraOffset)
    IUsesCameraOffsetMethods.SetCameraScale(IUsesCameraOffset, Single)
    IUsesCameraOffsetMethods.GetCameraOffsetMatrix(IUsesCameraOffset)
    IUsesCameraOffsetMethods.ApplyOffsetToPose(IUsesCameraOffset, Pose)
    IUsesCameraOffsetMethods.ApplyInverseOffsetToPose(IUsesCameraOffset, Pose)
    IUsesCameraOffsetMethods.ApplyOffsetToPosition(IUsesCameraOffset, Vector3)
    IUsesCameraOffsetMethods.ApplyInverseOffsetToPosition(IUsesCameraOffset, Vector3)
    IUsesCameraOffsetMethods.ApplyOffsetToDirection(IUsesCameraOffset, Vector3)
    IUsesCameraOffsetMethods.ApplyInverseOffsetToDirection(IUsesCameraOffset, Vector3)
    IUsesCameraOffsetMethods.ApplyOffsetToRotation(IUsesCameraOffset, Quaternion)
    IUsesCameraOffsetMethods.ApplyInverseOffsetToRotation(IUsesCameraOffset, Quaternion)
    IUsesPlaneFindingMethods.GetPlanes(IUsesPlaneFinding, List<MRPlane>)
    IUsesPlaneFindingMethods.SubscribePlaneAdded(IUsesPlaneFinding, Action<MRPlane>)
    IUsesPlaneFindingMethods.UnsubscribePlaneAdded(IUsesPlaneFinding, Action<MRPlane>)
    IUsesPlaneFindingMethods.SubscribePlaneUpdated(IUsesPlaneFinding, Action<MRPlane>)
    IUsesPlaneFindingMethods.UnsubscribePlaneUpdated(IUsesPlaneFinding, Action<MRPlane>)
    IUsesPlaneFindingMethods.SubscribePlaneRemoved(IUsesPlaneFinding, Action<MRPlane>)
    IUsesPlaneFindingMethods.UnsubscribePlaneRemoved(IUsesPlaneFinding, Action<MRPlane>)
    IUsesPlaneFindingMethods.StopDetectingPlanes(IUsesPlaneFinding)
    IUsesPlaneFindingMethods.StartDetectingPlanes(IUsesPlaneFinding)
    CameraOffsetExtensions.PoseToCameraSpace(IUsesCameraOffset, Pose, Vector3)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023