[Request] Support user defined styles
interested
naqtn
Add ability to specify additional user defined styles (Unity style sheets) for the Graph.
Motivation:
When you fill comment node text with Japanese characters, currently it shows the text with a font for Chinese. This font is not good for Japanese users. (Maybe it is simplified Chinese font named <edit>"Microsoft YaHei"</edit>. Maybe it is used as fallbacks of default font "Fonts/Lucida Grande.ttf".)
But if it specifies Japanese font, then it's not good for Chinese users. Most best way is handling language information with text as a rich text. But I think it's too much for this tool. Instead, if this tool has ability to specify font file, it's enough for most cases.
To achieve this, easier and generic way is specifying styles by users. So I suggest to support user defined styles.
(technically It's possible to solve it by modifying UdonGraphStyle.uss in SDK3. Of course, SDK modification is not allowed for user by TOS. Generally speaking, "technically possible things" sometimes spread out involuntarily. And it is bad educational thing for beginners, I think. So please provide us a legal way.)
version: VRCSDK-UDON-2020.06.09.16.32_Closed_Community_Test
--- Attached images
- Font value of Comment node Label is specified in Unity builtin default USS
- It seems to use fallbacks
- I manually change the font. Then font glyph becomes fine for Japanese
Log In
naqtn
Note about current "dummy font": I found by chance that Unity's GraphView explicitly specify dummy font in their code. And GraphView developers are conscious of a need that require use of system fonts to USS. So future version of GraphView might change this issue. https://github.com/Unity-Technologies/UnityCsReference/blob/046023e393f90a7952d53a7386bfcfd231bf4870/Modules/GraphViewEditor/Views/GraphView.cs#L259
Momo the Monster
interested
Yes - this is planned. There is a simple example of specifying your own styles with UdonGraphNeonStyle.uss, this is loaded when you check the setting 'Use Neon Style'. We'll add a system for user defined styles after release, once we finalize the naming scheme for elements.