-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fill in descriptions for import options in the class reference #79405
Conversation
66f9c60
to
5f601b8
Compare
5f601b8
to
69b9032
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving in principle, but would appreciate @bruvzg to check if all comments were properly addressed.
</member> | ||
<member name="fallbacks" type="Array" setter="" getter="" default="[]"> | ||
List of font fallbacks to use if a glyph isn't found in this dynamic font. Fonts at the beginning of the array are attempted first, but fallback fonts that don't support the glyph's language and script are ignored (see [member language_support] and [member script_support]). See also [member allow_system_fallback]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List of font fallbacks to use if a glyph isn't found in this dynamic font. Fonts at the beginning of the array are attempted first, but fallback fonts that don't support the glyph's language and script are ignored (see [member language_support] and [member script_support]). See also [member allow_system_fallback]. | |
List of font fallbacks to use if a glyph isn't found in this dynamic font. Fonts at the beginning of the array are attempted first, but fallback fonts that don't support the glyph's language and script are attempted last (see [member language_support] and [member script_support]). See also [member allow_system_fallback]. |
Procedure is like this, text server add each of the fallbacks to the one of 3 lists - language and script match, script match, no match. And do through them in the following order:
- Main font
- Language and script match list
- Script match list
- No match list
- System font (from
OS.get_system_font_path_for_text
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've applied the suggested change on Calinou's behalf to start the CI. I think for now it's good for merge (so it makes it into 4.2.dev2). If there are further clarifications or corrections required, we can open a follow-up PR.
69b9032
to
bc58a8a
Compare
Thanks! |
</member> | ||
<member name="nodes/apply_root_scale" type="bool" setter="" getter="" default="true"> | ||
If [code]true[/code], [member nodes/root_scale] will be applied on the meshes and animations directly, while keeping the root node's scale to the default [code](1, 1, 1)[/code]. This means that if you add a child node later on within the imported scene, it won't be scaled. If disabled, [member nodes/root_scale] will multiply the scale of the root node instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that I also adjusted these docs in #79774, I have rebased it and attempted to merge the doc changes.
This fully documents all editor import options currently exposed. (We are missing some options due to how they're registered, such as
slices/amount
in ResourceImporterLayeredTexture andgltf/embedded_texture_handling
in EditorSceneFormatImporterGLTF.)