MPB Generator / Editor
The core editor tool is render-pipeline independent. ... Package Contents ... Known Limitations ... MaterialPropertyBlocks do not guarantee GPU instancing or improved rendering performance.
by Frouin Robin
Price History +
Key Features
- Generate editable MaterialPropertyBlock data from existing Materials.
- Edit shader properties directly in the GameObject Inspector.
- Apply per-Renderer and per-material-slot shader overrides.
- Single-slot workflow with MPBGenerator.
- Multi-slot workflow with MPBGeneratorList.
- Material slot selection based on Renderer.sharedMaterials.
- Shader Graph Blackboard category parsing.
- Automatic Shader Graph asset detection.
- Support for Color, Vector, Float, Range, Texture, and Int properties.
- Checkbox support for detected float-based toggles.
- Optional generation of hidden shader properties.
- Generate, Apply, and Clear controls.
- Custom component icon support in Unity 2022 or newer.
- English and French technical documentation.
- Blood Splatter demo scene with Shader Graph assets.
Unity Compatibility
Recommended version: Unity 2021.3 LTS or newer.
- Unity 2021.3: Core functionality supported.
- Unity 2022 and newer: Additional custom component icon support.
- Custom icon functionality may be unavailable in older Unity versions.
Render Pipeline Compatibility
- The core editor tool is render-pipeline independent.
- Supports standard Unity shader properties through MaterialPropertyBlocks.
- Shader Graph category detection requires a compatible Shader Graph asset.
- The included Blood Splatter demo may require URP and Shader Graph, depending on its configuration.
Package Contents
- Runtime components and serialized property data.
- Custom Editor inspectors and utilities.
- English and French PDF documentation.
- Blood Splatter demo scene, Materials, Shader Graph assets, and textures.
Known Limitations
- Shader Graph category detection relies on the internal .shadergraph file format, which may change between Unity versions.
- MaterialPropertyBlocks do not guarantee GPU instancing or improved rendering performance.
- Shader properties without recognized Blackboard categories may appear under the Other category.
MPB Generator is a Unity Editor tool designed to simplify MaterialPropertyBlock workflows.
It generates editable shader properties from an existing Material, then applies those values to a Renderer using MaterialPropertyBlock. This allows you to create per-object or per-material-slot shader variations without duplicating Materials or modifying shared Material assets.
The package includes two workflows:
- MPBGenerator: A simple single-slot component.
- MPBGeneratorList: An advanced multi-slot component for Renderers using multiple Materials.
MPB Generator can also read Shader Graph Blackboard categories to organize generated properties in a cleaner Inspector layout.
It is useful for decals, hit effects, blood splatter materials, props, shader debugging, per-object visual variations, and workflows where multiple objects share the same Material but need different shader values.
The package includes English and French documentation, along with a Blood Splatter demo scene demonstrating the tool's functionality.