assets-refresh

Refresh Unity AssetDatabase and force script recompilation after external file changes.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/lunafish/Game00 --skill assets-refresh
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: assets-refresh
Source: https://github.com/lunafish/Game00/tree/main/SKILLS/assets-refresh
Command: npx skills add https://github.com/lunafish/Game00 --skill assets-refresh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the need to update Unity's AssetDatabase when external changes occur or to force script recompilation, ensuring the project's integrity and developer workflow.

Core Features & Use Cases

  • Asset Database Refresh: Updates Unity's internal representation of project assets after external modifications.
  • Script Recompilation: Forces Unity to recompile scripts when .cs files are changed outside the Unity editor.
  • Use Case: After manually adding new texture files to the project's Assets folder, use this Skill to make Unity recognize and import them correctly.

Quick Start

Refresh the Unity asset database and force script recompilation.

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 adding files externally?▼

To refresh the Unity AssetDatabase after adding files externally, you need to force an asset refresh and recompile scripts. This updates Unity's internal representation of project assets, ensuring newly added files like textures are recognized and imported correctly.

Why does Unity not recognize changes made to .cs files outside the editor?▼

Unity does not recognize external .cs file changes because its AssetDatabase is not automatically updated. Forcing script recompilation refreshes the database, ensuring the project's integrity and updating the developer workflow to reflect those modifications.

When do I need to force script recompilation in Unity?▼

You need to force script recompilation in Unity when a change in a .cs file requires scripts to be rebuilt, or when files are added or updated outside of the Unity API. This ensures the project's internal code state matches the external file system.

Can I control import behavior during a Unity asset refresh?▼

Yes, you can control import behavior during a Unity asset refresh by passing an optional options parameter. This allows you to specify how the AssetDatabase should handle the import process when updating its internal representation of modified project assets.

What is the best way to update Unity assets after modifying the Assets folder manually?▼

The best way to update Unity assets after manually modifying the Assets folder is to refresh the AssetDatabase and force script recompilation. This updates Unity's internal representation of the project assets to correctly recognize and import the new files.