get_material_usage_flag
Check whether a base material allows a specific EMaterialUsage flag, such as SkeletalMesh or Niagara, to diagnose default grey checker rendering on skeletal or instanced meshes.
Instructions
Is this material allowed to be used on that kind of geometry? Reads one EMaterialUsage flag (SkeletalMesh, InstancedStaticMeshes, Niagara, SplineMesh, ...) on a base material. The check to make when a material renders fine on a static mesh and comes out as the default grey checker on a skeletal mesh or an instanced mesh -- a missing usage flag is exactly that symptom. Accepts the name with or without the MATUSAGE_ prefix; set_material_usage_flag enables it (and forces a shader recompile).
Returns: { material_path: string, usage: string, enabled: bool, success: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usage | Yes | Usage flag name, with or without the MATUSAGE_ prefix (e.g., 'SkeletalMesh' or 'MATUSAGE_SkeletalMesh') | |
| material_path | Yes | Full path to the material (e.g., '/Game/Materials/MyMaterial.MyMaterial') |