The '''MaterialAssetMetadata''' component gives variant info about materials in the form of usable values. These values are usually listed at the bottom of a material inspector but are unusable in that state.
|VariantIndex|{{RootFieldType|RawOutput`1|[[Type:Nullable`1|Nullable`1]]<[[Type:UInt32|UInt32]]>}}|TypeAdv1=true| The material variant defined by GPU definitions on the shader. For example, a reflection material has a second variant for having a normal map vs without.
|RawVariantIndex|{{RootFieldType|RawOutput`1|[[Type:Nullable`1|Nullable`1]]<[[Type:UInt32|UInt32]]>}}|TypeAdv2=true| The raw version of <code>VariantIndex</code>.
|VariantID|{{RootFieldType|RawOutput`1|[[Type:String|String]]}}|TypeAdv3=true| The ID of the material variant (can be seen at the bottom of a material in the Inspector too.
|WaitingForApply|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv5=true| Whether this material is waiting to be applied in the render scene due to missing variants or otherwise.
}}
}}
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Can be used to get variant info and other info shown at the bottom of a material in the Inspector as actual usable values.
Material Asset Metadata component as seen in the Scene Inspector
The MaterialAssetMetadata component gives variant info about materials in the form of usable values. These values are usually listed at the bottom of a material inspector but are unusable in that state.
The material variant defined by GPU definitions on the shader. For example, a reflection material has a second variant for having a normal map vs without.