Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

MaxValueAttribute

A topic by CatyboyStudio created Oct 14, 2022 Views: 101
Viewing posts 1 to 1

After the data changes, if the data is out of range, it is automatically corrected to the limited max value

[MaxValue(10)]
public int IntMax10;

Limit range supports type: int, float or reference another property Supports property type: int, float, Vector2, Vector3, Vector4, Vector2Int, Vector3Int