set_resource
Assign a resource to a node's property, either by loading an existing resource from a res:// path or minting a new inline sub-resource of a specified class.
Instructions
Assign a resource to a node's property (undoable). Use 'resource' (res:// path to load) OR 'class' (mint a new inline sub-resource of that class). e.g. set Sprite2D.texture from a path, or a fresh RectangleShape2D on CollisionShape2D.shape.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class | No | class to instantiate as a new inline sub-resource | |
| target | Yes | ||
| property | Yes | ||
| resource | No | res:// path of an existing resource |