mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class ButtonBackgroundSizeOffset

    Scales an object relative the scale of the Anchor Transform Works best when using with Layout3DPixelSize, but not required - See LayoutPixelSize for more info Use Case: Create a button, then add another element who's size should maintain a consistent size relative to the Anchor. Like creating a button background using a Cube and ButtonSize. The add another Cube that is 40 pixels smaller than the background. Event if the background changes size, this element will remain 40 pixels smaller.

    Inheritance
    Object
    ButtonBackgroundSizeOffset
    Implements
    MonoBehaviour
    Namespace: Microsoft.MixedReality.Toolkit.UI
    Assembly: cs.temp.dll.dll
    Syntax
    [Obsolete("This component is no longer supported", true)]
    [Obsolete("This component is no longer supported", true)]
    public class ButtonBackgroundSizeOffset : MonoBehaviour, MonoBehaviour

    Methods

    GetScale()

    Declaration
    public Vector3 GetScale()
    Returns
    Type Description
    Vector3

    GetScale()

    Declaration
    public Vector3 GetScale()
    Returns
    Type Description
    Vector3

    GetSOffset()

    Get the current offset value

    Declaration
    public Vector3 GetSOffset()
    Returns
    Type Description
    Vector3

    GetSOffset()

    Get the current offset value

    Declaration
    public Vector3 GetSOffset()
    Returns
    Type Description
    Vector3

    SetOffset(Vector3)

    Set a consistent offset value from the Anchor

    Declaration
    public void SetOffset(Vector3 offset)
    Parameters
    Type Name Description
    Vector3 offset

    SetOffset(Vector3)

    Set a consistent offset value from the Anchor

    Declaration
    public void SetOffset(Vector3 offset)
    Parameters
    Type Name Description
    Vector3 offset

    SetScale(Vector3)

    Set the objects scale relative to the Anchor

    Declaration
    public void SetScale(Vector3 scale)
    Parameters
    Type Name Description
    Vector3 scale

    SetScale(Vector3)

    Set the objects scale relative to the Anchor

    Declaration
    public void SetScale(Vector3 scale)
    Parameters
    Type Name Description
    Vector3 scale

    Implements

    MonoBehaviour
    In This Article
    • Methods
      • GetScale()
      • GetScale()
      • GetSOffset()
      • GetSOffset()
      • SetOffset(Vector3)
      • SetOffset(Vector3)
      • SetScale(Vector3)
      • SetScale(Vector3)
    • Implements
    Back to top Generated by DocFX