Godot Version
4.4 stable
Question
I have a resource that uses scenes as items. The scenes contain items I spawn.
I used this code to be able to fill the array in the editor:
@export var arrayOfItems : Array[PackedScene] = []
I was able to fill the array in the editor. Now I decided to add some more items. But I cant make anymore resources. When I fill the array, it looks like it adds the items. If I switch to a different resource and reopen the first one. The array says it has 4 items, but it is empty.
If I open an old one that worked and i replace an item in the array with a new item. it looks like it works. But when I reopen it is has all the old items in it.
If i add the items directly without the array, it does save them. But that is a weird workaround.
I even tried it in godot 4.3 and same issue
Any ideas what I might have done to break it?
extends Resource
class_name AvailableItemArrayResource
@export var item1 : PackedScene
@export var item2 : PackedScene
@export var item3 : PackedScene
@export var item4 : PackedScene
@export var item5 : PackedScene
@export var item6 : PackedScene
@export var arrayOfItems : Array[PackedScene] = []