Troubles with displaying a texture made in script

Godot Version

4.3

Question

Heya, followed some sample code on making a texture at runtime- it’s pretty small so I am confused at why nothing is displaying. Only theory is that its godot version differences at play…

Here’s the code:
image

Here’s the Sprite3D settings:

And the Sprite3D rendering the placeholder texture when commenting out the sprite.texture assignment:


And as you can imagine, nothing displays in the same location when uncommenting the texture assignment.

Wasn’t able to find more recent threads about this issue so figured I’d make one.
Thanks for any help!

Finding more stuff in docs- Image.create is depricated
going to see if create_empty will fix my issue

Ok, got a white square displaying-
Code looks like this now:
image

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.