Hello again everyone.
I’ve started messing about with custom Property Drawers and all seems to be going well as far as making those is concerned.
The problem is that I have a class that I want a property drawer for, consisting of an array of strings and an array of floats.
If I use something like this:
public class Test extends System.Object
{
var stringTest1 : String[];
var floatTest1 : float[];
}
var newTest : Test;
It just has two arrows for the arrays, but nothing when expanded.
So instead, I decided to use this:
public class Test extends System.Object
{
var stringTest1 : String;
var floatTest1 : float;
}
var newTest : Test[];
However, when I try to access any of the values it gives me an Array index out of range error.
Here is how I am trying to access it:
function Update()
{
print("String Test 1 = " + newTest[1].stringTest1 + "Float Test 1 = " + newTest[1].floatTest1);
}