unity-material

Edit Unity material and shader properties across Built-in, URP, and HDRP render pipelines.

2|Updated May 18, 2026
One-click install
npx skills add https://github.com/pcone-mm/NewFPG --skill unity-material-pcone-mm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-material
Source: https://github.com/pcone-mm/NewFPG/tree/main/.agents/skills/unity-skills/skills/material
Command: npx skills add https://github.com/pcone-mm/NewFPG --skill unity-material-pcone-mm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Changing how objects look in Unity requires repetitive manual edits in the Inspector, and property names differ across Built-in, URP, and HDRP pipelines. This Skill lets you create, assign, and modify materials and shader properties programmatically, with automatic pipeline detection and batch operations for multi-object workflows. ## Core Features & Use Cases - Material Creation & Assignment: Create materials with auto-detected shaders and assign them to renderers, individually or in batch. - Property Editing: Set colors (with HDR intensity), emission, textures, floats, ints, vectors, keywords, render queue, texture tiling, and GI flags. - Pipeline-Aware: Automatically adapts property names like _Color vs _BaseColor and _MainTex vs _BaseMap for Built-in, URP, and HDRP. - Use Case: You need to recolor 20 scene objects with different materials. Instead of 40+ individual calls, use material_create_batch, material_set_colors_batch, and material_assign_batch to finish in three calls. ## Quick Start Ask the AI to create a red material named "Red" in Assets/Materials and assign it to the GameObject named Cube1.

Frequently Asked Questions about unity-material

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I change a material color in Unity with a script?

Use material_set_color with the GameObject name or material asset path, providing r, g, b values in the 0-1 range. The color property name is auto-detected per pipeline, or you can pass propertyName explicitly.

How do I set metallic or smoothness on a Unity material?

There is no dedicated metallic or smoothness setter. Use material_set_float with propertyName "_Metallic" or "_Glossiness" for the Standard shader, or "_Smoothness" for URP, along with the desired float value.

Does this work with URP and HDRP materials?

Yes, the skills auto-detect the active render pipeline and map property names accordingly, such as _BaseColor and _BaseMap for URP versus _Color and _MainTex for Built-in. Shader creation also defaults to the pipeline-appropriate shader.

How do I change materials on multiple objects at once in Unity?

Use the batch variants: material_create_batch, material_assign_batch, material_set_colors_batch, and material_set_emission_batch. Each accepts a JSON array of per-item objects, reducing many individual calls to one.

Why does material_set_color not change my material?

Color values must be in the 0-1 range, not 0-255. Also verify the property name matches your shader, since URP uses _BaseColor while Built-in uses _Color, though auto-detection normally handles this.

Can I delete a material asset with this module?

No, this module contains no delete operations. To delete a material asset, use the separate asset module, which handles asset lifecycle operations.