lighting
Skill15 starsChanged 5 months agoMITView on GitHub
Skill for AI agents driving Unity lighting (per-Light / ReflectionProbe / skybox) in a project through the unity-open-mcp MCP server. This domain is embedded in the bridge and opt-in. Its tools use the built-in lighting module (Light / ReflectionProbe / RenderSettings / Lightmapping) — no Unity package install is required, and they compile into every bridge build. Its tool group is hidden from ListTools until the connected session activates it. - Unity Editor is open with the target project. -…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- arjun988/blender-skillstheir own version, first seen Jul 10, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- arjun988/blender-skills★ 267same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- demo/AGENTS.mdAGENTS.md
- hub/AGENTS.mdAGENTS.md
- mcp-server/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- animationSkill
- audioSkill
- cinemachineSkill
- constraintsSkill
- input-simulationSkill
- inputsystemSkill
- memoryprofilerSkill
- navigationSkill
- particlesystemSkill
- probuilderSkill
- shadergraphSkill
- splinesSkill
- spriteatlasSkill
- terrainSkill
- textureSkill
- tilemapSkill
- timelineSkill
- uiSkill
- vfxSkill
- unity-open-mcpSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
Use the project-settings tools for ambient/fog.
- Very specific: line 83
Read probe settings first with unity_open_mcp_reflection_probe_get (gate-free): mode, resolution, hdr, clearFlags, importance, size, …
- Very specific: line 96
Read the current skybox with unity_open_mcp_skybox_get (gate-free): path, name, and shader.
- Very specific: line 117
Add a ReflectionProbe with unity_open_mcp_component_add on a GameObject positioned at the surface.
- Very specific: line 133
When light_set does not cover a field, use light_modify:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Unity Open MCP — Lighting Extension
Skill for AI agents driving Unity lighting (per-Light / ReflectionProbe / skybox)
in a project through the unity-open-mcp MCP server.
This domain is embedded in the bridge and opt-in. Its tools use the built-in lighting module (
Light/ReflectionProbe/RenderSettings/Lightmapping) — no Unity package install is required, and they compile into every bridge build. Its tool group is hidden fromListToolsuntil the connected session activates it.
Preconditions
- Unity Editor is open with the target project.
unity_open_mcp_pingreturnsconnected: true.- The
lightingtool group is activated — callunity_open_mcp_manage_tools(action="activate", group="lighting")before invoking any lighting tool. Fresh sessions start with two default-on groups (coreandgate-and-verify); activate the other groups you need on demand. Because lighting is built-in,capabilitiesalways reports thelightinggroup asavailable: true(nodomainDefine).
Tool prefixes
Three prefixes share the lighting group:
unity_open_mcp_light_*— per-Light manipulation (add / set / modify).unity_open_mcp_reflection_probe_*— probe bake (long mutation) + read.unity_open_mcp_skybox_*— skybox assignment + read.
Mutating tools accept the standard paths_hint and run the full gate path;
read-only tools (reflection_probe_get, skybox_get) are gate-free.
Layered with project-settings lighting
The lighting group covers per-object lighting (a Light component on a
GameObject, a probe, the scene skybox). It sits on top of the
project-settings lighting surface already in the build-settings group:
settings_get_lighting/settings_set_lighting—RenderSettingsambient mode/color, fog (mode/density/color/distance). Scene-scoped project settings.light_*/reflection_probe_*/skybox_*(this group) — per-Light fields, probe bake, skybox material assignment.
Use the project-settings tools for ambient/fog; use this group for individual lights, probes, and the skybox.
Canonical workflow: a lit scene
- Discover —
unity_open_mcp_component_list_all(filterLight) orunity_open_mcp_gameobject_findto locate existing lights. Address any host byinstance_id>path>name. - Add a light —
unity_open_mcp_light_addon a GameObject. Setlight_type(Spot|Point|Directional|Area|Rectangle, defaultDirectional), and optionallycolor("r,g,b,a"0-1),intensity,range(Point/Spot),spot_angle(Spot). Returns the Light state. Idempotent — re-using an existing Light reportsadded:false. - Tune it —
unity_open_mcp_light_setfor the common fields (color,intensity,range,spot_angle,shadows,render_mode,culling_mask). Each field is optional — omit to leave unchanged. - Niche fields —
unity_open_mcp_light_modifywhenlight_setdoes not cover a field (reflective field patch, typed toLightwith enum-name support forLightType/LightShadows/RenderMode).
Reflection probe bake (long mutation)
unity_open_mcp_reflection_probe_bake bakes a ReflectionProbe. bake_mode:
realtime—ReflectionProbe.Bake()into the probe's runtime texture.baked—Lightmapping.BakeAsync()(a full lightmap bake including baked reflection probes).custom—Lightmapping.BakeReflectionProbeSnapshot()into a named cubemap asset. Passtarget_path(anAssets/-rooted.cubemappath); the asset is created if absent.
The bake can take seconds. The tool routes through the gate with the
editor_settle lifecycle — the dispatcher waits for the bake + asset refresh to
complete before returning, so the next mutation sees the finished bake. This is
the documented advantage over ungated bake tools (no settle window). For
custom mode, paths_hint must include the probe's scene path and the
output cubemap asset path.
Read probe settings first with unity_open_mcp_reflection_probe_get
(gate-free): mode, resolution, hdr, clearFlags, importance, size,
near/far clip, and the baked cubemap path.
Skybox assignment
unity_open_mcp_skybox_set assigns RenderSettings.skybox from a material
asset path (Assets/.../*.mat), or clears it when material_path is null. The
skybox is a scene-environment setting — the active scene is marked dirty so the
write persists (call scene_save to commit), and DynamicGI.UpdateEnvironment
is invoked to refresh ambient/indirect lighting. paths_hint covers the active
scene path and the material asset path.
Read the current skybox with unity_open_mcp_skybox_get (gate-free): path,
name, and shader.
Common recipes
Daylight directional + ambient
light_addon an empty GameObject named "Sun" withlight_type: "Directional",intensity: 1.2.light_setforshadows: "soft"on the sun.- Ambient:
settings_set_lighting(build-settingsgroup) withambientMode,ambientIntensity,ambientColor.
Point lights with range
light_addon each lamp GameObject withlight_type: "Point",intensity: 2.0,range: 8.0,color: "1,0.85,0.6,1"(warm).light_setto toggleshadows: "soft"per lamp.
Reflection probe for a glossy surface
- Add a
ReflectionProbewithunity_open_mcp_component_addon a GameObject positioned at the surface. reflection_probe_getto confirm the settings (resolution,hdr).reflection_probe_bakewithbake_mode: "custom",target_path: "Assets/Lighting/SurfaceProbe.cubemap". Wait for the settle window — the tool returnsbaked: true+cubemapPathwhen the bake finishes.
Swap the skybox
skybox_setwithmaterial_path: "Assets/Materials/NightSky.mat". The active scene is dirtied and the ambient environment refreshed.scene_saveto commit the scene-level change.
Reflective mutation (niche Light fields)
When light_set does not cover a field, use light_modify:
{
"fields_json": "[{\"field\":\"bounceIntensity\",\"value\":1.5,\"type\":\"float\"},{\"field\":\"shadows\",\"value\":\"Soft\",\"type\":\"string\"}]",
"paths_hint": ["Assets/Scenes/Game.unity"]
}Each entry is { field, value, type? } where type is
int | float | bool | string | vector | color (default inferred from the
field's current type). Enum fields (LightType / LightShadows / RenderMode)
accept a name or an int index. Per-field errors are accumulated — a single bad
entry does not abort the batch. Prefer light_set for the common cases.
Agent-sense pairing
unity_senses_screenshot(view:"game") visually confirms the lighting after a set / bake.unity_open_mcp_settings_get_lightingreads the ambient/fog layer (complementary to this group's per-object lighting).
Tool reference
| Tool | Mutating | Lifecycle | Notes |
light_add | yes | editor_settle | Idempotent — re-using reports added:false. |
light_set | yes | editor_settle | Typed fields; each optional. |
light_modify | yes | editor_settle | Reflective field patch for niche fields. |
reflection_probe_bake | yes | editor_settle | Long mutation — realtime / baked / custom. |
reflection_probe_get | no | none | Probe settings (read-only). |
skybox_set | yes | editor_settle | Assign/clear RenderSettings.skybox; dirties active scene. |
skybox_get | no | none | Current skybox path (read-only). |
Address every target by instance_id > path > name (same model as
gameobject_* / component_*). Every mutating tool requires a non-empty
paths_hint scoped to the host's scene path (and, for skybox_set, the
material asset path; for reflection_probe_bake custom mode, the cubemap path)
— the gate has no whole-project fallback.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

