load_sprite
Load texture resources into Sprite2D or TextureRect nodes within Godot 4 scenes to display images and graphics in game development projects.
Instructions
Load a texture resource into a Sprite2D (or TextureRect) node.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to the project directory | |
| scenePath | Yes | Scene file path | |
| nodePath | Yes | Path to the Sprite2D node | |
| texturePath | Yes | Texture path (res://assets/player.png) |