[MinVector3]

Attribute used for clamping a Vector3 field components to minimum values.

Support Types

Type
Example
Description

Vector3

Vector3

3D vector representation

Parameters

Parameter Name
Description

x

Minimum allowed value for X component.

y

Minimum allowed value for Y component.

z

Minimum allowed value for Z component.

xProperty

Name of property providing minimum value for X.

yProperty

Name of property providing minimum value for Y.

zProperty

Name of property providing minimum value for Z.

Examples

[MinVector3(0, 0, 0)]
public Vector3 position;

public float minY = 0;

[MinVector3(0, "minY", 0)]
public Vector3 velocity;

[MinVector3("minX", "minY", "minZ")]
public Vector3 limits;

Last updated