You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
662 B
C#

using UnityEngine;
public class FPD_SuffixAttribute : PropertyAttribute
{
public readonly float Min;
public readonly float Max;
public readonly SuffixMode Mode;
public readonly string Suffix;
public readonly bool editableValue;
public enum SuffixMode
{
From0to100,
PercentageUnclamped,
FromMinToMax,
FromMinToMaxRounded
}
public FPD_SuffixAttribute(float min, float max, SuffixMode mode = SuffixMode.From0to100, string suffix = "%", bool editable = true)
{
Min = min;
Max = max;
Mode = mode;
Suffix = suffix;
editableValue = editable;
}
}