CornerRadius
interludesoftware.tick¶
Interlude.Tick¶
CornerRadius Struct¶
Constructors¶
CornerRadius(float) Constructor¶
Creates a CornerRadius with all four corners set to radius.
Parameters¶
radius System.Single
CornerRadius(float, float, float, float) Constructor¶
Creates a CornerRadius with explicit per-corner values.
Parameters¶
topLeft System.Single
topRight System.Single
bottomLeft System.Single
bottomRight System.Single
Methods¶
CornerRadius.Clamp(float) Method¶
Returns a copy with every corner radius clamped to at most maxRadius. Pass half the shorter side of the target rect so the rounded-corner SDF stays well-formed.
Parameters¶
maxRadius System.Single
Returns¶
CornerRadius.ToVector4() Method¶
Returns the corner radii packed into a UnityEngine.Vector4 in shader order (BottomRight, TopRight, BottomLeft, TopLeft).
Returns¶
Operators¶
CornerRadius.implicit operator CornerRadius(int) Operator¶
Implicitly converts an System.Int32 to a uniform CornerRadius.
Parameters¶
value System.Int32