You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose I have a class Prize, and I want to make a Reorderable List for it.
Now I have different types of Prizes that each has its own class that inherits from Prize, for example CoinPrize, that besides having the original attributes, also have a amount attribute, that I want to also modify in the inspector.
Since obviously you can't add items to the list and expect the class to magically know what type of item you want, I have create separated buttons, each that adds a specific class child for the list
But in the inspector, even if adding the element via the correct button, the child class attributes doesn't show up:
Is there any way I can make this work?
The text was updated successfully, but these errors were encountered:
I believe you need to use the new [SerializeReference] attribute on your list.
What happens if you remove the Reorderable list? Does the functionality of adding and drawing different prizes into the list work?
Have I written this title correctly?
Suppose I have a class

Prize
, and I want to make a Reorderable List for it.Now I have different types of Prizes that each has its own class that inherits from
Prize
, for exampleCoinPrize
, that besides having the original attributes, also have aamount
attribute, that I want to also modify in the inspector.Since obviously you can't add items to the list and expect the class to magically know what type of item you want, I have create separated buttons, each that adds a specific class child for the list

But in the inspector, even if adding the element via the correct button, the child class attributes doesn't show up:
Is there any way I can make this work?
The text was updated successfully, but these errors were encountered: