assets-material-create

Create Unity Material assets with a specified shader at a given asset path.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/igot-ai/os-twin --skill assets-material-create-igot-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: assets-material-create
Source: https://github.com/igot-ai/os-twin/tree/main/.agents/skills/roles/game-engineer/develop-unity-ui/references/assets-material-create
Command: npx skills add https://github.com/igot-ai/os-twin --skill assets-material-create-igot-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of Unity Material assets with sensible default parameters, eliminating manual setup and ensuring consistent folder structures.

Core Features & Use Cases

  • Auto-creates Material assets at a given path and ensures all prerequisite folders exist.
  • Applies a specified shader by name to the new material (using a shader-list tool to verify availability).
  • Validates inputs (assetPath must start with 'Assets/', ends with '.mat') and returns a Material reference for downstream pipelines.
  • Use Case: Rapidly provision materials for a new scene by batch-creating materials with consistent shaders.

Quick Start

Create a material at Assets/Materials/Hero.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 automate Unity material creation for multiple assets?

You can automate Unity material creation by applying a specified shader to a given asset path, which validates inputs and returns a Material reference. This ensures consistent material setup across multiple assets, scenes, and props without manual configuration.

What are the path requirements for creating a .mat file in Unity?

Creating a .mat file in Unity requires the asset path to start with 'Assets/' and end with the '.mat' extension. This input validation ensures the material asset is correctly registered within the Unity project folder structure.

Can I batch-create Unity materials with consistent shaders for a new scene?

Yes, you can batch-create Unity materials with consistent shaders for a new scene. The workflow applies a specified shader by name to each new material, verifying availability through a shader-list tool to ensure uniform setup across all generated assets.

Does the Unity material creation process check if prerequisite folders exist?

Yes, the Unity material creation process auto-creates material assets at a given path and ensures all prerequisite folders exist. This prevents missing directory errors and maintains a consistent folder structure during automated game development workflows.

Why does my Unity material asset path fail validation during automated setup?

Unity material asset path validation fails if the path does not start with 'Assets/' or end with the '.mat' extension. Enforcing these strict naming conventions ensures the material reference is correctly generated and accessible in downstream pipelines.

What is the best way to set up Unity materials with default parameters?

The best way to set up Unity materials with default parameters is using an automated creation process that applies a specified shader to a validated asset path. This eliminates manual setup and ensures consistent folder structures across game development projects.