Changing Panel names

How do I change the name of the Panel Manager element?
No description
3 Replies
andybak
andybak12mo ago
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
Sharingan Yusuf
Sharingan YusufOP12mo ago
I've added an Enum for my panel's name in the BasePanel script and even gave it an explicit number like this:
public enum PanelType
{
SketchSurface,
Color,
...
TransformPanel = 12000,
Yusuf = 12001
}
public enum PanelType
{
SketchSurface,
Color,
...
TransformPanel = 12000,
Yusuf = 12001
}
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
andybak
andybak12mo ago
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)
Want results from more Discord servers?
Add your server