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.

  • xyz replied to this.
  • TheEpicCookie Assign a different resource to node's property that holds the resource reference:

    node.resource_property = load("res://EnemyData.tres")

    TheEpicCookie Assign a different resource to node's property that holds the resource reference:

    node.resource_property = load("res://EnemyData.tres")