I have this control node that has an EnemyData.tres resource in it
and i want to replace it with an EnemyData2.tres, and i want to
be able to replace it with the EnemyData.tres while the game
is running.
How do i replace a resource in a node by script?
- Best Answerset by TheEpicCookie
TheEpicCookie Assign a different resource to node's property that holds the resource reference:
node.resource_property = load("res://EnemyData.tres")
xyz Thanks!