Editor API
Validate substance data and bake render libraries from your own Editor tools. Place these calls in an Editor-only assembly.
Start with the integration guide for complete examples, or use the API index to find a type.
MatterDataPrebuildValidator
public class MasterTech.Matter.Editor.MatterDataPrebuildValidator
Prevents malformed Matter substance data from entering a player build and exposes the same deterministic validation to CI.
Methods
ValidateAllSubstanceDatabases
Collects simulation and render-data validation failures across discoverable databases.
Signature
public static System.Collections.Generic.List<string> ValidateAllSubstanceDatabases()
Returns
System.Collections.Generic.List<string>: A list of validation errors; empty when the checks pass.
SubstanceRenderLibraryBaker
public static class MasterTech.Matter.Editor.SubstanceRenderLibraryBaker
Editor-only validation and baking of substance presentation records and texture arrays.
Methods
Bake
Validates and bakes a database's presentation at the requested resolution into the specified asset path.
Signature
public static MasterTech.Matter.Data.SubstanceRenderLibrary Bake(MasterTech.Matter.Data.SubstanceDatabase database, string libraryPath, int resolution)
Parameters
| Name | Type | Description |
|---|---|---|
database |
MasterTech.Matter.Data.SubstanceDatabase |
Authored substance database with stable ordering and valid presentation inputs. |
libraryPath |
string |
Unity asset path for the generated render library. |
resolution |
int |
Positive source-normalization or texture-array resolution in pixels. |
Returns
MasterTech.Matter.Data.SubstanceRenderLibrary: The created or updated render-library asset.