Skip to main content

manage_vfx

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_vfx

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

Description​

Manage Unity VFX components (ParticleSystem, VisualEffect, LineRenderer, TrailRenderer). Action prefixes: particle_, vfx_, line_, trail_. Authoring writes include exact-component readback with up to 16 line positions. Curve and gradient key coverage remains incomplete when size cannot be bounded before copying. Control and event actions report issuance status. Action-specific parameters go in properties (keys match ManageVFX.cs). line_get_info returns up to 65536 positions. Set position_limit to request a smaller page and use nextPositionOffset as position_offset while the renderer is unchanged. vfx_get_exposed_properties reads bounded exposed schema/current values with exact parameter filter, page_size/page_number, max_curve_keys/max_gradient_keys/max_characters. Texture values are identities, curves/gradients are complete or explicitly unavailable under budgets; override state is unavailable. No simulation or writes.

Parameters​

NameTypeRequiredDescription
actionstryesAction to perform (prefix: particle_, vfx_, line_, trail_).
targetstr | None—Target GameObject (name/path/id).
search_methodLiteral['by_id', 'by_name', 'by_path', 'by_tag', 'by_layer'] | None—How to find the target GameObject.
propertiesdict[str, Any] | str | None—Action-specific parameters (dict or JSON object string).
component_indexint | None—Zero-based index to select which component when multiple of the same type exist (e.g., multiple ParticleSystems). If omitted, targets the first instance.
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​

Read a small page of exposed properties on the VisualEffect component of a scene object. Replace Campfire with an object using a compatible Visual Effect Graph.

MCP arguments
{
"action": "vfx_get_exposed_properties",
"target": "Campfire",
"search_method": "by_name",
"properties": {
"page_size": 10,
"page_number": 1
}
}