Changing Panel names
How do I change the name of the Panel Manager element?
![No description](https://cdn.answeroverflow.com/1182629801241100299/image.png)
3 Replies
Did you create a new PanelType entry in the enum?
it's roughly:
1. add a new enum
2. Create a new panel prefab
3. add a new panel map entry
4. add some way to open it
I've added an Enum for my panel's name in the BasePanel script and even gave it an explicit number like this:
Despite the PanelMap name not showing correctly in the PanelManager, I was successful in making my own panel with custom icons and text and for it to be instantiated when starting fixed on the left hand menu! However, I want the panel to be detached and available in front of me when I first start (since I want to use it as a main menu UI), is that possible to be done in a simple way?
![No description](https://cdn.answeroverflow.com/1183196334086443038/image.png)
I think "Begin Fixed" on the panel determines which panels are initially visible. After that the app checks PlayerPrefs to see where panels were last positioned by the user. You can probably override this bit of code.
Although - it would be nice if there was a nice way to do this. If you'd like to code it in a way that's sensible and reusable we'd love to have a pull request for that.
(this is from memory - I might have forgotten a better way to do this)