Class MinMaxRangeAttribute
Attribute used to make a Vector2 field act as a range between x and y.
Inherited Members
System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfoCount(System.UInt32)
System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfo(System.UInt32, System.UInt32, System.IntPtr)
System.Attribute.System.Runtime.InteropServices._Attribute.GetIDsOfNames(System.Guid, System.IntPtr, System.UInt32, System.UInt32, System.IntPtr)
System.Attribute.System.Runtime.InteropServices._Attribute.Invoke(System.UInt32, System.Guid, System.UInt32, System.Int16, System.IntPtr, System.IntPtr, System.IntPtr, System.IntPtr)
Namespace: Unity.Multiplayer.Tools.NetworkSimulator.Runtime
Syntax
[AttributeUsage(AttributeTargets.Field)]
public class MinMaxRangeAttribute : PropertyAttribute, _Attribute
Constructors
MinMaxRangeAttribute(Single, Single, Boolean)
Attribute used to make a Vector2 field act as a range between x and y.
Declaration
public MinMaxRangeAttribute(float min, float max, bool roundToInt = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Single | min | The minimum allowed value for x. |
| Single | max | The maximum allowed value for y. |
| Boolean | roundToInt |
Fields
Max
The maximum allowed value for y.
Declaration
public readonly float Max
Field Value
| Type | Description |
|---|---|
| Single |
Min
The minimum allowed value for x.
Declaration
public readonly float Min
Field Value
| Type | Description |
|---|---|
| Single |
RoundToInt
Declaration
public readonly bool RoundToInt
Field Value
| Type | Description |
|---|---|
| Boolean |