godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.57k stars 21.27k forks source link

Editor: Cannot Load an Image on New ImageTexture of a Sprite. #23148

Open wyattbiker opened 6 years ago

wyattbiker commented 6 years ago

Godot version: 3.1 alpha #bde3e88 Mac OS X, High Sierra

Issue description: Cannot Load an Image on New ImageTexture of a Sprite.

screen shot 2018-10-19 at 11 15 24 am

ghost commented 6 years ago

In 2D you don't need to import textures, you can use images directly by clicking the Texture property, Load and select your png. Did you try that?

rakkarage commented 1 year ago

I think the issue is that ImageTexture is the only one in the list with no UI... I guess it must be interacted with only by code? Why is there no Load Path or something like some other options in the list?

But I just found out this is intentional. :)

https://docs.godotengine.org/en/stable/classes/class_imagetexture.html "An ImageTexture is not meant to be operated from within the editor interface directly, and is mostly useful for rendering images on screen dynamically via code. If you need to generate images procedurally from within the editor, consider saving and importing images as custom texture resources implementing a new EditorImportPlugin."

Maybe could add a message saying "this space intentionally left blank" or "use from code" or something. Idk...