docs.unity3d.com
    Show / Hide Table of Contents

    Class SynthesizedPlane

    Creates data for an MRPlane When added to a synthesized object, adds a trackable MRPlane to the database. When added to a simulated object, its plane will be provided to the database by the simulated plane provider.

    Inheritance
    Object
    SynthesizedTrackable
    SynthesizedTrackable<MRPlane>
    SynthesizedPlane
    Inherited Members
    SynthesizedTrackable<MRPlane>.AddSynthData(Int32)
    SynthesizedTrackable<MRPlane>.UpdateSynthData()
    SynthesizedTrackable<MRPlane>.RemoveSynthData(Int32)
    SynthesizedTrackable.SynthesizedObject
    SynthesizedTrackable.HasValidValue
    SynthesizedTrackable.OnDisable()
    SynthesizedTrackable.TryAdd()
    SynthesizedTrackable.TryRemove()
    Namespace: Unity.MARS.Data.Synthetic
    Syntax
    public class SynthesizedPlane : SynthesizedTrackable<MRPlane>, ISimulatable, ISynthesizedData, IProvidesTraits<bool>, IProvidesTraits, IUsesMARSTrackableData<MRPlane>, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>

    Properties

    TraitName

    Declaration
    public override string TraitName { get; }
    Property Value
    Type Description
    String
    Overrides
    SynthesizedTrackable.TraitName

    Methods

    Awake()

    Called by Unity when the object is first activated

    Declaration
    protected override void Awake()
    Overrides
    SynthesizedTrackable.Awake()

    GetData()

    Get the MRPlane data for this synthesized plane

    Declaration
    public override MRPlane GetData()
    Returns
    Type Description
    MRPlane

    The MRPlane data

    Overrides
    Unity.MARS.Data.Synthetic.SynthesizedTrackable<Unity.MARS.Data.MRPlane>.GetData()

    GetProvidedTraits()

    Get the TraitDefinitions provided by this SynthesizedPlane

    Declaration
    public override TraitDefinition[] GetProvidedTraits()
    Returns
    Type Description
    TraitDefinition[]

    The provided traits

    Overrides
    Unity.MARS.Data.Synthetic.SynthesizedTrackable<Unity.MARS.Data.MRPlane>.GetProvidedTraits()

    Initialize()

    Called by MARS when the SynthesizedObject is initialized

    Declaration
    public override void Initialize()
    Overrides
    SynthesizedTrackable.Initialize()

    OnEnable()

    Called by Unity when the object is enabled

    Declaration
    protected override void OnEnable()
    Overrides
    SynthesizedTrackable.OnEnable()

    RefreshFromMRPlane()

    Refresh the data for this SynthesizedPlane using the associated MRPlane

    Declaration
    public void RefreshFromMRPlane()

    SetMRPlaneData(List<Vector3>, Vector3, Vector2)

    Set the data for the MRPlane backing this SynthesizedPlane

    Declaration
    public void SetMRPlaneData(List<Vector3> vertices, Vector3 center, Vector2 extents)
    Parameters
    Type Name Description
    List<Vector3> vertices

    The vertices for the boundary polygon

    Vector3 center

    The position of the center of the plane

    Vector2 extents

    The extents of the boundary polygon

    Terminate()

    Called when this plane is removed from the MARS database

    Declaration
    public override void Terminate()
    Overrides
    SynthesizedTrackable.Terminate()

    ValidateUsingMeshCache()

    Ensure that this object has the correct references to its Mesh and MeshFilter

    Declaration
    public void ValidateUsingMeshCache()

    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)
    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