docs.unity3d.com
    Show / Hide Table of Contents

    Class SynthesizedManualPose

    Create the data for a pose trait When added to a synthesized object, adds a pose that is manually specified via script to its representation in the database

    Inheritance
    Object
    SynthesizedTrait
    SynthesizedTrait<Pose>
    SynthesizedManualPose
    Inherited Members
    SynthesizedTrait<Pose>.k_ProvidedTraits
    SynthesizedTrait<Pose>.GetProvidedTraits()
    SynthesizedTrait<Pose>.AddTrait(Int32)
    SynthesizedTrait<Pose>.UpdateTrait(Int32)
    SynthesizedTrait<Pose>.RemoveTrait(Int32)
    SynthesizedTrait.SynthesizedObject
    SynthesizedTrait.HasValidValue
    SynthesizedTrait.Awake()
    SynthesizedTrait.OnEnable()
    SynthesizedTrait.OnDisable()
    SynthesizedTrait.TryAdd()
    SynthesizedTrait.TryRemove()
    Namespace: Unity.MARS.Data.Synthetic
    Syntax
    public class SynthesizedManualPose : SynthesizedTrait<Pose>, ISimulatable, ISynthesizedData, IProvidesTraits<Pose>, IProvidesTraits, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>

    Properties

    Position

    The position of the synthesized pose

    Declaration
    public Vector3 Position { get; set; }
    Property Value
    Type Description
    Vector3

    Rotation

    The rotation of the synthesized pose

    Declaration
    public Quaternion Rotation { get; set; }
    Property Value
    Type Description
    Quaternion

    TraitName

    The trait which will be added to the associated SynthesizedObject

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

    UpdateWithTransform

    Whether the pose data should update with this object's Transform

    Declaration
    public override bool UpdateWithTransform { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    SynthesizedTrait.UpdateWithTransform

    Methods

    GetTraitData()

    Get the trait data for this synthesized pose

    Declaration
    public override Pose GetTraitData()
    Returns
    Type Description
    Pose

    The trait data

    Overrides
    Unity.MARS.Data.Synthetic.SynthesizedTrait<Pose>.GetTraitData()

    Extension Methods

    IProvidesTraitsMethods.AddOrUpdateTrait<T>(IProvidesTraits<T>, Int32, String, T)
    IProvidesTraitsMethods.RemoveTrait<T>(IProvidesTraits<T>, Int32, String)
    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