assets-material-create

Creates a new Unity material asset with a specified shader at a given asset path.

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill assets-material-create-fermisloth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: assets-material-create
Source: https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment/tree/main/.agent/skills/assets-material-create
Command: npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill assets-material-create-fermisloth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Manually creating material assets in Unity through the editor UI is repetitive, especially when automating scene setup or batch-generating assets. This Skill creates a new material asset programmatically via the unity-mcp-cli, with automatic folder creation and configurable shader assignment. ## Core Features & Use Cases - Material Asset Creation: Creates a new .mat file at any path under Assets/, recursively creating folders if they do not exist. - Shader Assignment: Assigns any available shader by name at creation time, discoverable via the assets-shader-list-all tool. - Use Case: While building a Unity scene through an AI assistant, you need a red-lit material for an object. Provide the path 'Assets/Materials/RedGlow.mat' and shader name, and the material is created instantly without opening the editor UI. ## Quick Start Ask the AI to 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 material in Unity programmatically?

Use the unity-mcp-cli run-tool command with assets-material-create, providing an assetPath under Assets/ ending in .mat and a shaderName. The tool creates the material and any missing folders automatically.

How do I find available shader names in Unity?

Use the assets-shader-list-all tool to list all shaders available in the project. Pass one of those names as the shaderName parameter when creating the material.

What if unity-mcp-cli is not found when running the command?

Install it globally with npm install -g unity-mcp-cli, or prefix commands with npx unity-mcp-cli. The unity-initial-setup skill contains detailed installation instructions.

Does the asset path need existing folders in Unity?

No, folders are created recursively if they do not exist. The path must start with Assets/ and end with the .mat extension.

What does the material creation tool return?

It returns an AssetObjectRef containing the instanceID, asset type, asset path, and asset GUID of the newly created material, which can be referenced by subsequent Unity operations.