Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | yuho170 |
i learn the video to create an item system,but something goes wrong.
i want to add item(resource) into the inventory Array(),but it can not work.
if i use ResourceSaver.save() ,it just only could save one data
extends Resource
class_name Inventory
signal item_changed()
export var items = Array() setget set_item,get_item
func set_item(item):
items = item
func get_item():
return items