load_sprite
Load a texture into a Sprite2D node within a Godot game project by specifying the project directory, scene file, node path, and texture file. Facilitates asset management and scene updates programmatically.
Instructions
Load a sprite into a Sprite2D node
Input Schema
Name | Required | Description | Default |
---|---|---|---|
nodePath | Yes | Path to the Sprite2D node (e.g., "root/Player/Sprite2D") | |
projectPath | Yes | Path to the Godot project directory | |
scenePath | Yes | Path to the scene file (relative to project) | |
texturePath | Yes | Path to the texture file (relative to project) |