Component:MainTexturePropertyBlock

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


The MainTexturePropertyBlock component is a Material Property Block for the main texture of a component.

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.
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 Texture to swap out the main texture with.

Usage

This component allows one to swap out what a material considers its main texture, such as the albedo texture, with the given Texture. This property block only applies to materials that contain a _MainTex material property field. Notably, UnlitMaterial does not support this property block.

Examples

A good use for this component could be a picture wall, wherein a significant amount of pictures that should look the same but with different textures can be built with efficient memory usage and initial draw calls. Each picture would have its own MeshRenderer using the same material but with its own MainTexturePropertyBlock.

See Also