How to put text box in resources

Godot Version

4.2.1

Question

hi i am having a hard time putting a textbox in a resource. here the textbox:


is there a way to add a textbox to your resources?

What do you mean? Can you elaborate more?

@export_multiline maybe?

1 Like

iwant to put the textbox here in my resource somewhere in this area


here the code if you need it:

extends Resource

class_name InventoryItem

@export var name: String = ""
@export var texture: Texture2D
@export var maxamount: int
@export var item_name: String = ""
@export var stat: Label = TextEdit

I don’t think you can change a label using a resource
why don’t you put a simple text in it and change the label using another script

I just changed it with @export_multiline and it worked

1 Like

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