9 [CreateAssetMenu(menuName =
"Custom Assets/Mutable/Float")]
public class Float :
OfType<float> {
10 [SerializeField]
private Range range =
new Range(0, 1);
13 public float Minimum {
get => range.Min;
set => range.Min = value; }
16 public float Maximum {
get => range.Max;
set => range.Max = value; }
19 public static Float Instance(
string name) => Instance<Float>(name);
22 public new static Float New(
string name) => New<Float>(name);
25 public static Float New() => New<Float>();
28 public override void Set(
float toValue) => base.
Set(Math.Min(Math.Max(range.Min, toValue), range.Max));
Base class for a custom asset. Provides getters and setters for the contained value and templates for...
override void Set(float toValue)
Float CustomAsset contains a float value which can be connected directly to OnValueChange callbacks i...