Component:MaterialAssetMetadata

From Resonite Wiki
This page contains changes which are not marked for translation.
Component image 
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.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
Material Material The material to get Metadata on.
VariantIndex raw output of Nullable`1<UInt32> 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 raw output of Nullable`1<UInt32> The raw version of VariantIndex.
VariantID raw output of String The ID of the material variant (can be seen at the bottom of a material in the Inspector too.
RawVariantID raw output of String The raw version of VariantID.
WaitingForApply raw output of Bool Whether this material is waiting to be applied in the render scene due to missing variants or otherwise.

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.

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


See Also