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