You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating an imagetexture, and initialize it with an image created by a script fails. After initialization, the image size is still Vector2(0, 0). Setting it with set_size_override put the size right, but the image still can't be shown, error "Condition "!tex" is true".
Steps to reproduce
Write a script that creates an imageTexture initialized by an image also created by script, set it via this script to a TextureRect or something else.
You should use static method ImageTexture.create_from_image (without using a ImageTexture.new() constructor). Same reason why #63131 happened and it will fixed in docs by #63127
Godot version
4.0.alpha12
System information
Linux (Archlinux)
Issue description
Creating an imagetexture, and initialize it with an image created by a script fails. After initialization, the image size is still Vector2(0, 0). Setting it with set_size_override put the size right, but the image still can't be shown, error "Condition "!tex" is true".
Steps to reproduce
Write a script that creates an imageTexture initialized by an image also created by script, set it via this script to a TextureRect or something else.
Minimal reproduction project
BugImageToTexture.zip
The text was updated successfully, but these errors were encountered: