FloatSliderPropertyDecorator

Class in ChivalrousGames.Common.Inspector / Inherits from PropertyDecorator

Description

This decorator modifies a float field so it can’t have a value below a specified float value and can’t have a value higher than another specified float value. The decorator expects 2 float params containing the minimum value and maximum the field can reach.

Usage Example

[DecoratedProperty(typeof(FloatSliderPropertyDecorator), 0f, 100f)]
public float percentChancesToSpawn = 100;