Open noio opened 7 months ago
Update: I think a fix could be as simple as the following line in EditableLabelElement.cs
:
Hm okay another update:
I am actually not sure which "OS button icons" are still available in Unity 2023.
Maybe the issue is not Win vs Mac but more that Unity is no longer including any OS-specific icons in 2023?
This list contains winbtn_win and winbtn_mac variants, but when I examine the icons in my (2023) Unity, using Internal Icon Browser, then I'm actually not seeing any winbtn icons.
Perhaps if you're looking to just show a simple cross, it's safer to just use d_clear ?
Also getting this issue in Unity Pro 2023.2.20f1 on Windows.
Im using this to fix the problem in Unity 6
#if UNITY_6000_0_OR_NEWER
private const string closeIcon = "CrossIcon";
#else
private const string closeIcon = "d_winbtn_win_close";
#endif
First off, I love this package and its philosophy, I've only just begun using it but having a generic visualization/editor for graph based data is just amazing. Unity should have this built in. Thanks so much for sharing this with your fellow game devs 🙏
This is just a tiny bug that I'm seeing, it's also not affecting the workflow in any way, I think:
When opening a graph, an error is thrown because Unity can't find the icon d_winbtn_win_close. Which makes sense, as I assume that's a windows only icon.
I normally wouldn't open an issue for mac specific issues, that just might not be a target platform for this package.
But I see you're beautifully handling some Mac specific stuff already! (e.g. showing the ⌘ char for the Command key) 💕
Below is the full stack trace: (again, this occurs when opening a graph)