I want to create the below scenario :
I have 2 scripts
1 attached to a GameObject with the name “MaterialManager”
This accepts the array of strings:
Cobalt, Sandstorm, SangriaRed, Smoke etc
This script is constant for one object
Should look like this:
I should have one more script with the Name “ProductsEnum” which should have array of enum.
This enum should show the MaterialManager’s array of string as enum in the editor.
I don’t mind keeping an editor button to update the enum list when any new material is added in the material manager.
Can Look something Like this
Can someone please help me do this?
All these things must be Custom Editor Script and not the runtime one.