Component:MainAndMaskTexturePropertyBlock

From Resonite Wiki
This page contains changes which are not marked for translation.
Component image 
Main And Mask Texture Property Block component as seen in the Scene Inspector

The MainAndMaskTexturePropertyBlock component is used to modify material properties on mesh renderers and skinned mesh renderers as part of their material Property blocks. This is useful in instances where having lots of extra materials is less performant than modifying a material using a Property Block.

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.
HighPriorityIntegration Bool If true, integrating this asset (e.g. processing procedural assets) gets higher priority than assets with this flag off. An example is user laser procedural meshes.
Texture ITexture2D The texture to replace the Main texture on a material with.
MaskTexture ITexture2D The texture to replace the Mask texture on a material with.

Usage

Can be used to optimize many materials that only differ in main and mask texture properties.

Examples

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


See Also