public string[] movementTypes = new string[] {"None", "Linear", "Path", "Roll", "HeatSeek"};
But I later decided to remove the Roll movementType. When I displayed the array in a custom editor via a Popup, it won’t update the values. I have no clue how to fix this. Please Help
I forgot that I can’t create duplicate forums. My mistake and it got deleted. I ended up just using the unconventional way and remade my entire project with the desired changes and that worked.
Thanks for the help guys, but like I said earlier, the problem has been fixed.
Using an enum makes the rest of my code harder to manage, so that’s a no-go.
I’m wasn’t drawing the default inspector, and I’m not really sure what serialising is. From what I have gathered with my minimal editor script knowledge, there are two sets ups that work, one is using the code like this: Editor Scripting - Unity Learn
the other uses serialising and stuff like this code: Unity - Manual: Custom Editors
I use the first. It’s easier in my opinion. So I don’t really understand your question
I still tried to make it private, but I just got a bunch of errors and it didn’t do anything. Thanks anyway.