-
-
Notifications
You must be signed in to change notification settings - Fork 20.2k
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
[img] richtextlabel BBCode does not display with "Image" resource #79729
Comments
@FireCatMagic Please upload a minimal reproduction project to make this easier to troubleshoot. |
here |
I can confirm this on 4.2.dev 0f7625a and 4.0.3.stable (Linux). I'm not sure why it's not working on your end, considering it works in the Rich Text BBCode demo. |
The difference is the "import type" of the asset, |
I made it an Image resource rather than a Texture2D because of the docs: https://docs.godotengine.org/en/stable/tutorials/ui/bbcode_in_richtextlabel.html#reference |
That's why it doesn't work 🙂 Image resources can't be displayed as-is; only their pixel data can be queried on the CPU. Use the default Texture2D import type instead. See the RichTextLabel implementation, which references godot/scene/gui/rich_text_label.cpp Line 3092 in f8dbed4
#79737 will help with troubleshooting these issues in the future. |
Godot version
4.1.1 stable
System information
Godot v4.1.1.stable - Windows 10.0.19045 - Vulkan (Compatibility) - NVIDIA GeForce GTX 750 Ti (NVIDIA; 31.0.15.3179) - 12th Gen Intel(R) Core(TM) i5-12400F (12 Threads)
Issue description
They simply do not display.
I started typing random junk in, and it displays the "resource not found" error for all of it. Except it is successful for the image, proving it accepts it as valid.
Steps to reproduce
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: