0 votes

I have an ItemList. The user can drag and drop images from their computer onto the item list, at which point ImageTextures are created and added to the ItemList with the following code:

var image = Image.new()
var texture = ImageTexture.new()
add_icon_item(texture, true)

This works fine for photos that are landscape, but for portrait photos, they are added sideways. I would like the user to be able to select images within the ItemList and rotate them as they see fit, but I haven't discovered a way of doing this. ImageTexture does not appear to have any properties that allow for rotation, and the ItemList node only allows Textures to be added, meaning you can't add a Node2D first with a Texture child and then rotate the entire Node2D.

Is there any way to rotate Textures within an ItemList?

in Engine by (75 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.