Reference to Array Attribute from Inspector
Hi, I'm fairly new to Unity and coding, please help me on this!
I've this script Item.cs attached to all my Item game objects. The only way I can initialize the value of the Items is through inspector by editing the values like what can be seen in the picture.
However, the values for the Item game objects are from XML file which I'll deserialize and store into an array. My question is, how do you get the value from the array from the inspector? I've more than 10 items that uses this Item.cs script that I use for calculations after getting all the values from the inspector. Do you use custom editor to change how the inspector works?
Please help me on this, thank you in advance!
Your answer
Follow this Question
Related Questions
Vector3 array not showing up in inspector! 1 Answer
Position Array Returning null reference 1 Answer
Switching the index of a GameObject Array type? 2 Answers
Unity List of Color array not showing in inspector? 3 Answers
How can I get a reference to a Prefab in the Asset folder without instantiating it? 2 Answers