Sign In Register

How can we help you today?

Start a new topic

RT SetInt Not working(unity)

I really confused what is going on here, every time a try to access an int from an RTData it returns null. 

    

RTData data = new RTData().SetString(1, "Player 1");
        RTData data2 = new RTData().SetString(1, "Player 2");
        RTData data3= new RTData().SetString(1, "Player 3");
        RTData total = new RTData().SetInt(1, 3).SetData(1, data).SetData(2, data2).SetData(3, data3);
        print(total.GetInt(1));
        print(total.GetData(1).GetString(1));
        print(total.GetData(2).GetString(1));
        print(total.GetData(3).GetString(1));

  It returns: 

Null

Player 1

Player 2

Player 3


Can someone please explain this.

Thank you

Login to post a comment