Shimizoki
❔ [Unity?] How to have a list of generic classes in inspector cast as derived class
The thing that I'm working on is about to go down that nasty rabbit hole of having 50 of the exact same item, with no changes between any of them except for the types.
Each of these items has a boilerplate copy and paste, and then in half a dozen places scattered around the code base needs to have the exact same chunk of code copied and then the names changed for this item.
My goal is to prevent that. Maybe my starting premise was wrong to begin with
78 replies
❔ [Unity?] How to have a list of generic classes in inspector cast as derived class
I am absolutely happy to change as many things as necessary here. I even have some ability to change the actual functionality of the class. Maybe I can find a way to not use that add function at all.
I'm just really looking for a way that I can have all of these different objects in an enumerable of some kind
78 replies