Component:MultiTextureFader

From Resonite Wiki
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