assets-copy

Copies assets between paths and refreshes the Unity AssetDatabase.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Copy assets from a source path to a new destination path and refresh the Unity AssetDatabase, reducing manual asset management steps.

Core Features & Use Cases

  • Copy one or multiple assets from sourcePaths to destinationPaths within a Unity project.
  • Automatically refresh AssetDatabase after copying to ensure assets are up-to-date.
  • Useful for asset reorganization, versioning, and batch duplication during project maintenance.

Quick Start

Call the assets-copy tool with sourcePaths and destinationPaths to copy assets and refresh the AssetDatabase.

Frequently Asked Questions about assets-copy

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

FAQPage Schema
How do I copy assets and refresh the Unity AssetDatabase automatically?

To copy assets and refresh the Unity AssetDatabase, provide sourcePaths and destinationPaths to automate single or batch asset relocation. This guarantees AssetDatabase.Refresh() executes immediately after copying finishes.

Can I batch duplicate assets across Unity project folders?

Yes, you can batch duplicate assets across Unity project folders by passing multiple sourcePaths and destinationPaths. The tool handles batch relocation for project maintenance and reorganizes assets efficiently.

What is the best way to automate asset reorganization in Unity?

Automating asset reorganization in Unity involves mapping sourcePaths to destinationPaths for batch duplication. This approach reduces manual asset management steps and ensures the AssetDatabase updates automatically.

Why does the Unity AssetDatabase need a refresh after copying assets?

The Unity AssetDatabase needs a refresh after copying assets to ensure the editor recognizes newly duplicated or relocated files. This keeps assets up-to-date and prevents missing reference errors during project maintenance.

What inputs are required to relocate assets within a Unity project?

Relocating assets within a Unity project requires sourcePaths and destinationPaths as inputs. Providing these paths allows the automation to copy single or multiple assets and trigger an AssetDatabase refresh.