assets-material-create

Create a Unity Material asset with a specified shader at an Assets path.

Updated May 20, 2026
One-click install
npx skills add https://github.com/Alltwice/Unity-3D-Project --skill assets-material-create-alltwice
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: assets-material-create
Source: https://github.com/Alltwice/Unity-3D-Project/tree/main/.agents/skills/assets-material-create
Command: npx skills add https://github.com/Alltwice/Unity-3D-Project --skill assets-material-create-alltwice

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Manually creating Material assets in Unity requires opening the editor, navigating menus, and assigning shaders by hand. This Skill automates material creation through the unity-mcp-cli, letting you generate .mat assets with a chosen shader directly from an AI-driven workflow. ## Core Features & Use Cases - Automated Material Creation: Creates a new Material asset with default parameters from any shader resolvable via UnityEngine.Shader.Find. - Recursive Folder Creation: Automatically creates intermediate folders when the target Assets/ path does not exist. - Structured Output: Returns an AssetObjectRef containing the instanceID, asset type, path, and GUID of the new material. - Use Case: While building a Unity scene, ask the AI to create a material at 'Assets/Materials/Player/PlayerSkin.mat' using the 'Standard' shader, then assign it to a renderer in the next step. ## Quick Start Create a new Unity material at Assets/Materials/MyMaterial.mat using the Standard shader.

Frequently Asked Questions about assets-material-create

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

FAQPage Schema
How do I create a Unity material asset programmatically?▼

Run the assets-material-create tool via unity-mcp-cli with an assetPath starting with 'Assets/' and ending in '.mat', plus a shaderName. The tool creates the material with default parameters, saves it, and refreshes the AssetDatabase.

How to find available shader names in Unity for material creation?▼

Use the assets-shader-list-all tool to enumerate shaders available in the project. The shaderName you provide must be resolvable via UnityEngine.Shader.Find, otherwise the creation call throws an error.

Does the material creation tool create missing folders in the Assets path?▼

Yes, intermediate folders are created recursively if they do not exist. You only need to provide a valid path starting with 'Assets/' and ending with '.mat'.

Why does Unity material creation fail with a shader error?▼

The tool throws when the shaderName cannot be resolved by UnityEngine.Shader.Find, or when the assetPath is empty or malformed. Verify the shader exists using assets-shader-list-all and check the path format.

What should I do if unity-mcp-cli is not found?▼

Install it globally with 'npm install -g unity-mcp-cli' or invoke it through 'npx unity-mcp-cli'. The unity-initial-setup skill contains detailed installation instructions.