Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | BOX_Milk |
hi
I need to make use of the item and I have in the script of the item there are 2 variables (name, icon) … ,
but I don’t know how to do it,
please help me
if you mean change the export variables when you do item.instantiate()
then you can do something like
@export var name: = 'my name'
@export var icon: = 69
func _init():
name = 'bob'
icon = 33
OgGhostJelly | 2023-03-02 15:39