So I am trying to make an inventory system on my own. I made my assets all in one file because it is much easier to create them that way. I made pixel art for my items, characters, etc. Now I have these lines of code
extends Resource
class_name InventoryItem
@export var name: String = " " @export var image := Texture2D
Super basic. I am very new to godot. When I put the image in I get no option for a region like how a 2d sprite is.
Option 1 would be to convert your texture2d into a “Image” there you can select a region and the convert it back to a “ImageTexture”. Another option is that you use “AtlasTexture” instead of “Texture2D”, they should have the option to select certain “frames”. Third option is to split up your asset file into multiple files