Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MinAttribute

Attribute used to make a float or int variable in a script be restricted to a specific minimum value.
Read time 3 minutesLast updated 4 days ago

Definition

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true, AllowMultiple = false)]public sealed class MinAttribute : PropertyAttribute, _Attribute

Fields

Value

Description

minThe minimum allowed value.

Constructors

Constructor

Description

MinAttribute(System.Single)Attribute used to make a float or int variable in a script be restricted to a specific minimum value.

Inheritance

Inherited Members