assets-refresh

Refresh Unity AssetDatabase after external file modifications.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Refreshes the AssetDatabase to reflect changes made outside of Unity's API, ensuring the project stays in sync.

Core Features & Use Cases

  • Refreshes AssetDatabase after external file modifications.
  • Forces Unity to reimport assets and recompile scripts when .cs files are updated.
  • Use Case: when assets are added or modified outside Unity, synchronize the AssetDatabase to reflect changes.

Quick Start

Run assets-refresh after external changes to immediately synchronize Unity's AssetDatabase.

Frequently Asked Questions about assets-refresh

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

FAQPage Schema
How do I refresh the Unity AssetDatabase after editing files externally?

To refresh the Unity AssetDatabase after external file modifications, run a synchronization process that forces Unity to reimport assets and recompile scripts, ensuring the project reflects changes made outside its API.

Why does Unity not recognize new assets added outside the editor?

Unity does not recognize external changes because its AssetDatabase is not automatically updated by outside processes. Refreshing the AssetDatabase forces Unity to detect and reimport newly added or modified files.

Can I force Unity to recompile scripts after updating .cs files externally?

Yes, you can force Unity to recompile scripts by refreshing the AssetDatabase. This synchronization triggers a rebuild and ensures updated .cs files are properly recognized by the Unity editor.

What is the best way to synchronize Unity with external asset changes?

The best way to synchronize Unity with external asset changes is to execute an AssetDatabase refresh, which updates the project state and triggers reimporting of modified assets and scripts.

When do I need to refresh the AssetDatabase in my Unity workflow?

You need to refresh the AssetDatabase whenever assets or scripts are added or modified outside the Unity workflow, ensuring the editor stays in sync and properly recognizes external edits.