Skip to main content

refresh_unity

Auto-generated from the Python tool registry. Do not hand-edit outside <!-- examples:start --><!-- examples:end --> blocks — the generator (tools/generate_docs_reference.py) will overwrite them.

Group: core  ·  Module: services.tools.refresh_unity

Description

Request a Unity asset database refresh and optionally a script compilation. Can optionally wait for readiness.

Parameters

NameTypeRequiredDescription
modeLiteral['if_dirty', 'force']Refresh mode
scopeLiteral['assets', 'scripts', 'all']Refresh scope
compileLiteral['none', 'request']Whether to request compilation
wait_for_readyboolIf true, wait until editor_state.advice.ready_for_tools is true

Returns

A dict containing the Unity response. The exact shape depends on the action.

Examples

No examples yet. Add usage examples here — they will be preserved across regenerations.