日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class ConstantViewSize

    ConstantViewSize solver scales to maintain a constant size relative to the view (currently tied to the Camera)

    Inheritance
    Object
    Solver
    ConstantViewSize
    Inherited Members
    Solver.UpdateLinkedTransform
    Solver.MoveLerpTime
    Solver.RotateLerpTime
    Solver.ScaleLerpTime
    Solver.Smoothing
    Solver.SolverHandler
    Solver.GoalPosition
    Solver.GoalRotation
    Solver.GoalScale
    Solver.WorkingPosition
    Solver.WorkingRotation
    Solver.WorkingScale
    Solver.Awake()
    Solver.OnEnable()
    Solver.OnDestroy()
    Solver.SolverUpdateEntry()
    Solver.SnapTo(Vector3, Quaternion, Vector3)
    Solver.SnapGoalTo(Vector3, Quaternion, Vector3)
    Solver.SnapTo(Vector3, Quaternion)
    Solver.SnapGoalTo(Vector3, Quaternion)
    Solver.AddOffset(Vector3)
    Solver.SmoothTo(Vector3, Vector3, Single, Single)
    Solver.SmoothTo(Quaternion, Quaternion, Single, Single)
    Solver.UpdateTransformToGoal()
    Solver.UpdateWorkingToGoal()
    Solver.UpdateWorkingPositionToGoal()
    Solver.UpdateWorkingRotationToGoal()
    Solver.UpdateWorkingScaleToGoal()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities.Solvers
    Assembly: cs.temp.dll.dll
    Syntax
    public class ConstantViewSize : Solver

    Properties

    CurrentDistancePercent

    0 to 1 between MinDistance and MaxDistance. If current is less than max, object is potentially on a surface [or some other condition like interpolating] (since it may still be on surface, but scale percent may be clamped at max). This value is subject to inaccuracies due to smoothing/interpolation/momentum.

    Declaration
    public float CurrentDistancePercent { get; }
    Property Value
    Type Description
    Single

    CurrentScalePercent

    0 to 1 between MinScale and MaxScale. If current is less than max, then scaling is being applied. This value is subject to inaccuracies due to smoothing/interpolation/momentum.

    Declaration
    public float CurrentScalePercent { get; }
    Property Value
    Type Description
    Single

    FovScale

    Returns the scale to be applied based on the FOV. This scale will be multiplied by distance as part of the final scale calculation, so this is the ratio of vertical fov to distance.

    Declaration
    public float FovScale { get; }
    Property Value
    Type Description
    Single

    ManualObjectSize

    Overrides auto size calculation with provided manual size. If 0, solver calculates size

    Declaration
    public float ManualObjectSize { get; set; }
    Property Value
    Type Description
    Single

    MaxDistance

    If the object is farther than MaxDistance, the distance used is clamped here

    Declaration
    public float MaxDistance { get; set; }
    Property Value
    Type Description
    Single

    MaxScale

    Maximum scale value possible (world space scale)

    Declaration
    public float MaxScale { get; set; }
    Property Value
    Type Description
    Single

    MinDistance

    If the object is closer than MinDistance, the distance used is clamped here

    Declaration
    public float MinDistance { get; set; }
    Property Value
    Type Description
    Single

    MinScale

    Minimum scale value possible (world space scale)

    Declaration
    public float MinScale { get; set; }
    Property Value
    Type Description
    Single

    ScaleBuffer

    Used for dead zone for scaling

    Declaration
    public float ScaleBuffer { get; set; }
    Property Value
    Type Description
    Single

    ScaleState

    Declaration
    public ScaleState ScaleState { get; }
    Property Value
    Type Description
    ScaleState

    TargetViewPercentV

    The object take up this percent vertically in our view (not technically a percent use 0.5 for 50%)

    Declaration
    public float TargetViewPercentV { get; set; }
    Property Value
    Type Description
    Single

    Methods

    RecalculateBounds()

    Attempts to calculate the size of the bounds which contains all child renderers for attached GameObject. This information is used in the core solver calculations

    Declaration
    public void RecalculateBounds()

    SolverUpdate()

    Should be implemented in derived classes, but Solver can be used to flush shared transform to real transform

    Declaration
    public override void SolverUpdate()
    Overrides
    Solver.SolverUpdate()

    Start()

    Declaration
    protected override void Start()
    Overrides
    Solver.Start()
    Back to top Generated by DocFX