Generate and edit MaterialPropertyBlocks from Materials and Shader Graphs without duplicating Materials.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.Key FeaturesGenerate 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 CompatibilityRecommended 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 CompatibilityThe 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 ContentsRuntime 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 LimitationsShader 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.AI tools were used as support during the package creation process.They were mainly used for debugging assistance, researching Unity API/version compatibility, checking best practices for package organization, and improving documentation wording.All code, package structure, testing, implementation decisions, and final validation were reviewed and handled manually by the publisher (me).




