Component:MultiTextureFader: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add info
 
Line 3: Line 3:
|Name=Multi Texture Fader`1
|Name=Multi Texture Fader`1
}}
}}
{{stub}}
The '''MultiTextureFader''' component can be used with the [[Component:PBSLerpMetallic]] or [[Component:PBSLerpSpecular]] to lerp multiple textures rather than just one.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|FirstTexture|{{RootFieldType|DriveRef`1|[[Type:AssetRef`1|AssetRef`1]]<A>}}|TypeAdv0=true|
|FirstTexture|{{RootFieldType|DriveRef`1|[[Type:AssetRef`1|AssetRef`1]]<A>}}|TypeAdv0=true| Usually set to the Texture set 0 of a lerping material.
|SecondTexture|{{RootFieldType|DriveRef`1|[[Type:AssetRef`1|AssetRef`1]]<A>}}|TypeAdv1=true|
|SecondTexture|{{RootFieldType|DriveRef`1|[[Type:AssetRef`1|AssetRef`1]]&lt;A&gt;}}|TypeAdv1=true| Usually set to the Texture set 1 of a lerping material. The type of texture set like albedo or emission this one is driving should be the same as <code>FirstTexture</code>.
|Lerp|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv2=true|
|Lerp|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv2=true| The lerp field of the material. Can be left blank if using multiple of this component on the same material.
|Position|Float|
|Position|Float| The position in the list of <code>Textures</code> to fade between. If this is a decimal, the <code>FirstTexture</code> and <code>SecondTexture</code> will be set to textures in <code>Textures</code> that are at the positon of floor and ceiling of this value.
|Textures|{{RootFieldType|SyncAssetList`1|A}}|TypeAdv4=true|
|Textures|{{RootFieldType|SyncAssetList`1|A}}|TypeAdv4=true| A list of textures to lerp between and set <code>FirstTexture</code> and <code>SecondTexture</code> to using <code>Position</code> to determine the texture from this list.
}}
}}


== Behavior ==
== Usage ==
Can be attached to a slot and given a list of materials. Using a [[Component:PBSLerpMetallic]] or [[Component:PBSLerpSpecular]] with this component can lerp the list of <code>Textures</code> using <code>Position</code>. The lerp of the material can be driven via the <code>Lerp</code> on this component.


== Examples ==
== Examples ==
{{stub}}


== See Also ==
== See Also ==
* [[Component:PBSLerpMetallic]]
* [[Component:PBSLerpSpecular]]


[[Category:Components:Utility{{#translation:}}|Multi Texture Fader`1]]
[[Category:Components:Utility{{#translation:}}|Multi Texture Fader`1]]
[[Category:Components{{#translation:}}|Multi Texture Fader`1]]
[[Category:Components{{#translation:}}|Multi Texture Fader`1]]
[[Category:Generic Components{{#translation:}}|Multi Texture Fader`1]]
[[Category:Generic Components{{#translation:}}|Multi Texture Fader`1]]
[[Category:ComponentStubs]]

Latest revision as of 17:15, 26 January 2025

Component image 
Multi Texture Fader`1 component as seen in the Scene Inspector

The MultiTextureFader component can be used with the Component:PBSLerpMetallic or Component:PBSLerpSpecular to lerp multiple textures rather than just one.

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.
FirstTexture reference drive of AssetRef`1<A> Usually set to the Texture set 0 of a lerping material.
SecondTexture reference drive of AssetRef`1<A> Usually set to the Texture set 1 of a lerping material. The type of texture set like albedo or emission this one is driving should be the same as FirstTexture.
Lerp field drive of Float The lerp field of the material. Can be left blank if using multiple of this component on the same material.
Position Float The position in the list of Textures to fade between. If this is a decimal, the FirstTexture and SecondTexture will be set to textures in Textures that are at the positon of floor and ceiling of this value.
Textures list of A A list of textures to lerp between and set FirstTexture and SecondTexture to using Position to determine the texture from this list.

Usage

Can be attached to a slot and given a list of materials. Using a Component:PBSLerpMetallic or Component:PBSLerpSpecular with this component can lerp the list of Textures using Position. The lerp of the material can be driven via the Lerp on this component.

Examples

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

See Also