Show / Hide Table of Contents

    Class TransformScaleHandler

    Component for setting the min/max scale values for ManipulationHandler or BoundingBox

    Inheritance
    Object
    TransformScaleHandler
    Namespace: Microsoft.MixedReality.Toolkit.UI
    Assembly: cs.temp.dll.dll
    Syntax
    public class TransformScaleHandler : MonoBehaviour

    Properties

    RelativeToInitialState

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

    ScaleMaximum

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

    ScaleMinimum

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

    TargetTransform

    Declaration
    public Transform TargetTransform { get; set; }
    Property Value
    Type Description
    Transform

    Methods

    ClampScale(Vector3)

    Clamps the given scale to the scale limits set by Microsoft.MixedReality.Toolkit.UI.TransformScaleHandler.SetScaleLimits such that:

    • No one component of the returned vector will be greater than the max scale.
    • No one component of the returned vector will be less than the min scale.
    • The returned vector's direction will be the same as the given vector
    Declaration
    public Vector3 ClampScale(Vector3 scale)
    Parameters
    Type Name Description
    Vector3 scale

    Scale value to clamp

    Returns
    Type Description
    Vector3

    The clamped scale vector

    Start()

    Declaration
    public void Start()
    Back to top Generated by DocFX