Back to Unity Mcp

manage_shader

website/docs/reference/tools/vfx/manage_shader.md

9.7.11.1 KB
Original Source

manage_shader

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: vfx  ·  Module: services.tools.manage_shader

Description

Manages shader scripts in Unity (create, read, update, delete). Read-only action: read. Modifying actions: create, update, delete.

Parameters

NameTypeRequiredDescription
actionLiteral['create', 'read', 'update', 'delete']yesPerform CRUD operations on shader scripts.
namestryesShader name (no .cs extension)
pathstryesAsset path (default: "Assets/")
contentsstr | NoneShader code for 'create'/'update'

Returns

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

Examples

<!-- examples:start -->

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

<!-- examples:end -->