Hey guys !
Trying to do my own custom editor… I need to expose / access in the UI a list of float (but note that it could be a list of anything)
Unity already supports that natively so you can add/remove/edit template list directly in the editor…
But the question is: Can you do that in your custom editor ??
So basicaly I’ve tried something like that :
List<float> Params;
Params = (List<float>) EditorGUILayout.ObjectField( "Parameters", (UnityEngine.Object)Params, typeof(List<float>) );
Unfortunately I have a “cannot convert type from List to UnityEngine.Object” compiler error so it looks this is not the correct way of doing that…
I’m pretty sure it’s possible… any help / hint / code / thing would be greatly appreciated
cheers