편집

다음을 통해 공유


BoundingBox.SetScaleLimits(Single, Single, Boolean) Method

Definition

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

Applies to