Maintain the parameters associated with a Object?

Hello,

I have several modular units which I use inside that game in a random manner. The size of these units, differ heavily and hence when I use them - those respective units come into play. When I size, it is X, Y ,Z and referenceObject. Now I want to know whether it is possible to store 4 values thro’ code.

For eg, if I had to store only the length then I would use a dictionary with the “key” being the (string)Transform and the “value” being the length of the Transform.

Thank you

you can use objects. as in objects, not Objects.

so you can have

object[] params = new object[] { x, y, z, myObject};

And with that, you can use params as the Value in your dictionary or list. Just know what index is what when your accessing params.