Skip to main content

manage_render_fog

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: graphics  ·  Module: services.registry.capability_adapter

Maturity: stable (support status; independent of enabled state, readiness and permissions).

Description​

Enable or configure scene fog.

Parameters​

NameTypeRequiredDescription
actionLiteral['skybox_set_fog']yesFeature action to perform.
modestr | None—Probe mode or debug mode.
colorlist[float] | None—Color [r,g,b,a] for ambient/fog.
fog_enabledbool | None—Enable or disable fog.
fog_modestr | None—Fog mode: Linear, Exponential, ExponentialSquared.
fog_colorlist[float] | None—Fog color [r,g,b,a].
fog_densityfloat | None—Fog density (Exponential modes).
fog_startfloat | None—Fog start distance (Linear mode).
fog_endfloat | None—Fog end distance (Linear mode).
unity_instancestr | int | None—Target Unity instance for this call: Name@hash or hash prefix; an integer selects only that exact port over stdio and is rejected over HTTP. Read mcpforunity://instances for available targets. Omit to use the legacy active selection or the sole available instance.

Returns​

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

Examples​

Enable linear fog in a test scene, fading between 25 and 100 world units. This changes the scene environment. Inspect its appearance in the Scene or Game view before saving.

MCP arguments
{
"action": "skybox_set_fog",
"fog_enabled": true,
"fog_mode": "Linear",
"fog_color": [
0.6,
0.67,
0.75,
1
],
"fog_start": 25,
"fog_end": 100
}