MinFloatValuePropertyDecorator

Class in ChivalrousGames.Common.Inspector / Inherits from PropertyDecorator

Description

Prevents a float field in the inspector from being lower than a preset value. The decorator expects 1 float param containing the minimum value the field can reach.

Usage Example

[DecoratedProperty(
	typeof(MinFloatValuePropertyDecorator), 0f,
	typeof(MaxFloatValuePropertyDecorator), 360f)]
public float min;