I can't assign a custom resource in a custom resource on run time

Godot Version

4.6

Question

I have an adventurer custom resource saved as a file.

I am creating custom item resources on run time. (weapons and armor)

When I am assigning the custom item resource into the adventurer exported variable (that accepts that specific custom resource) it doesn’t do anything.

HOWEVER

When I create the adventurer custom resource on runtime as well, it does accept the items.

Am I missing important knowledge or am I doing it wrong?

Yes?

You have not provided enough details (specifically code) to find a solution to your issue.

Just saw this help thread mentioned using const with a resource prevents its variables from being changed. Also when you say it hasn’t changed do you mean on disc or at runtime. If it’s not changing in disc it’s because you need to save it again.

I think that’s what const do.

It doesn’t change on runtime. I was checking the remote scene tree. In the end I am just creating the adventurer custom resource on runtime as well since it seems to be working that way but new problems might arise this way later on.