assets-refresh

Refresh the Unity AssetDatabase after external file changes via unity-mcp-cli.

3.8k|349|Updated Apr 2, 2025
One-click install
npx skills add https://github.com/IvanMurzak/Unity-MCP --skill assets-refresh-ivanmurzak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: assets-refresh
Source: https://github.com/IvanMurzak/Unity-MCP/tree/main/Unity-MCP-Plugin/.claude/skills/assets-refresh
Command: npx skills add https://github.com/IvanMurzak/Unity-MCP --skill assets-refresh-ivanmurzak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Refreshes the Unity AssetDatabase when files are added or updated outside the Unity API to ensure assets are reimported and recognized by the project.

Core Features & Use Cases

  • CLI-driven refresh: Force Unity to re-import assets after external edits or script updates.
  • Configurable options: Use an input JSON to tailor import options and behavior.
  • Use Case: When a new asset is added outside Unity or a script is changed, run this tool to ensure the AssetDatabase reflects the latest state.

Quick Start

Execute unity-mcp-cli run-tool assets-refresh with an input JSON to refresh the AssetDatabase after external edits.

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, use a CLI-driven tool to force Unity to re-import assets, ensuring the project recognizes the latest file changes and synchronizes the database.

Why does Unity not recognize assets added outside the editor?

Unity does not recognize assets added outside the editor because the AssetDatabase is not automatically updated by external file changes. You must trigger a refresh to re-import the assets and synchronize the project state.

Can I automate Unity asset reimporting from the command line?

Yes, you can automate Unity asset reimporting from the command line by executing a CLI tool with an input JSON, which forces the AssetDatabase to refresh and recognize externally modified scripts and assets.

How do I force Unity to recompile scripts after external edits?

You can force Unity to recompile scripts after external edits by triggering an AssetDatabase refresh via a CLI call, which ensures the project reimports updated scripts and synchronizes the latest changes.

Are there configurable options for Unity AssetDatabase refresh?

Yes, there are configurable options for the Unity AssetDatabase refresh. You can provide an input JSON to tailor the import options and behavior when executing the CLI tool to refresh assets.

When should I trigger an AssetDatabase refresh in my Unity workflow?

You should trigger an AssetDatabase refresh in your Unity workflow whenever new assets are added outside the Unity API or scripts are changed, ensuring the project reimports them and reflects the latest state.