Component:MainAndMaskTexturePropertyBlock: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page MainAndMaskTexturePropertyBlock (Component) to Component:MainAndMaskTexturePropertyBlock: Creating component Namespace
add info
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=MainAndMaskTexturePropertyBlockComponent.png
|Image=MainAndMaskTexturePropertyBlockComponent.png
|Name=Main And Mask Texture Property Block
|Name=Main And Mask Texture Property Block
}}
}}
The '''MainAndMaskTexturePropertyBlock''' component is used to modify material properties on [[Component:MeshRenderer|mesh renderers]] and [[Component:SkinnedMeshRenderer|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.


<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|HighPriorityIntegration|Bool|
|HighPriorityIntegration|Bool|{{Asset HighPriorityIntegration Field}}
|Texture|IAssetProvider`1|TypeString1=IAssetProvider<ITexture2D>|
|Texture|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv1=true| The texture to replace the Main texture on a material with.
|MaskTexture|IAssetProvider`1|TypeString2=IAssetProvider<ITexture2D>|
|MaskTexture|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv2=true| The texture to replace the Mask texture on a material with.
}}
}}


<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Can be used to optimize many materials that only differ in main and mask texture properties.


<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
{{stub}}


<!--T:5-->
<!--T:5-->
== Related Components ==
== See Also ==
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Main And Mask Texture Property Block]]
[[Category:Components{{#translation:}}|Main And Mask Texture Property Block]]
[[Category:Components:Assets:Material Property Blocks{{#translation:}}|Main And Mask Texture Property Block]]
[[Category:Components:Assets:Material Property Blocks{{#translation:}}|Main And Mask Texture Property Block]]

Latest revision as of 18:34, 24 January 2025

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