assets-move

Move Unity assets between paths and refresh the AssetDatabase.

Updated Feb 4, 2024
One-click install
npx skills add https://github.com/sprillion/gem_td --skill assets-move-sprillion
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: assets-move
Source: https://github.com/sprillion/gem_td/tree/main/SKILLS/assets-move
Command: npx skills add https://github.com/sprillion/gem_td --skill assets-move-sprillion

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Move the assets at paths in the project. Should be used for asset rename. Does AssetDatabase.Refresh() at the end. Use 'assets-find' tool to find assets before moving.

Core Features & Use Cases

  • Bulk move assets across folders to reflect renames
  • Ensure AssetDatabase.Refresh() executes to update Unity's asset cache
  • Validate source and destination paths and report moved and errors

Quick Start

Move assets from the specified source paths to the corresponding destination paths.

Frequently Asked Questions about assets-move

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bulk move Unity assets to new folders and update references?

Moving Unity assets safely involves validating source and destination path arrays before relocation. This Skill processes the inputs, returns MovedPaths and Errors, and executes AssetDatabase.Refresh() to finalize the cache update.

How to rename Unity assets without breaking existing project references?

To rename Unity assets without breaking references, use this tool to move assets to their new paths. It updates dependencies automatically and calls AssetDatabase.Refresh() to ensure project integrity.

What is the best way to automate moving multiple assets in a Unity project?

Automating asset moves in Unity is handled by passing arrays of sourcePaths and destinationPaths strings. The operation returns MovedPaths and Errors, concluding with AssetDatabase.Refresh() to sync the database.

Does AssetDatabase.Refresh() run automatically after moving Unity assets?

Yes, AssetDatabase.Refresh() runs automatically at the end of the asset move operation. This ensures Unity's asset cache is fully updated after the specified paths are processed and validated.

What should I do to find assets in Unity before moving them to new paths?

Finding assets before moving them requires using the 'assets-find' tool first. Once located, pass the identified source paths and their desired destination paths as string arrays to execute the move operation safely.