-
-
Notifications
You must be signed in to change notification settings - Fork 19.9k
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.
![image](https://private-user-images.githubusercontent.com/40964335/255037420-609b0762-3152-40b8-a239-ca7a7267216b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyODEwNjAsIm5iZiI6MTcyNDI4MDc2MCwicGF0aCI6Ii80MDk2NDMzNS8yNTUwMzc0MjAtNjA5YjA3NjItMzE1Mi00MGI4LWEyMzktY2E3YTcyNjcyMTZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJ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b19pZD0wIn0.aZm2U8E1vcORAUucSXhG9u7Xi2OBymW1d1SDM2vN3Nk)
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.
![image](https://private-user-images.githubusercontent.com/40964335/255037307-2526c537-787d-4d21-8e82-d9a7809794ad.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyODEwNjAsIm5iZiI6MTcyNDI4MDc2MCwicGF0aCI6Ii80MDk2NDMzNS8yNTUwMzczMDctMjUyNmM1MzctNzg3ZC00ZDIxLThlODItZDlhNzgwOTc5NGFkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDIyNTI0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcxYmY3OTIzMWU5ZWE5Yzk4MzUzZTYyNWEyMTEyNzFkMDI3OWU2NjczNDM3NjEyZGZiMjZjMTlkYmEyNWUxNWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OeKv2wP1wFWs4ImBxzVVlG2GC01emgbj52pDDQlPNUE)
Steps to reproduce
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: