Hi all!
Not sure what I’m doing wrong here but I can’t seem to get the default values to be applied on an array in my scriptable object.
public List<TestClass> test;
[Serializable]
public class TestClass
{
public TestClass()
{
value1 = 1;
value2 = 1;
}
[Range(0, 2)] public float value1 = 1;
[Range(0, 2)] public float value2 = 1;
}
Any ideas what I might be doing wrong there?
Thanks!
Pete