BoundingBox.SetScaleLimits(Single, Single, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use a MinMaxScaleConstraint script rather than setting min/max scale on BoundingBox directly
Sets the minimum/maximum scale for the bounding box at runtime.
[System.Obsolete("Use a MinMaxScaleConstraint script rather than setting min/max scale on BoundingBox directly")]
public void SetScaleLimits (float min, float max, bool relativeToInitialState = true);
[<System.Obsolete("Use a MinMaxScaleConstraint script rather than setting min/max scale on BoundingBox directly")>]
member this.SetScaleLimits : single * single * bool -> unit
Public Sub SetScaleLimits (min As Single, max As Single, Optional relativeToInitialState As Boolean = true)
Parameters
- min
- Single
Minimum scale
- max
- Single
Maximum scale
- relativeToInitialState
- Boolean
If true the values will be multiplied by scale of target at startup. If false they will be in absolute local scale.
- Attributes