#Resource to Image
22 messages · Page 1 of 1 (latest)
What kind of resource?
I'm using Godot.Load() and it keeps saying it's a Resource
Right now I'm trying to get an image to load from the filesystem
Like outside of the project?
Then use it as a texture
Then you would just use sprite.Texture = GD.Load<Texture2D>("res://path/to/file.png")
You don't need to load twice
That's already a loaded resource, so you just assign it
It's C#, you need to either cast it or use the parameterized version I posted above
Is this godot 4?
OH I have no idea how I didn't see that
Yea
You should probably mention that in the future as well
Ah sorry, the first time I forgot