Skip to main content

Class RendererTextureDivider

Divide Renderer texture (e.g. 3d speedometer). It splits and displays a specific region of a texture on a material using UV tiling and offset, based on row-column division.

public class RendererTextureDivider : MonoBehaviour

Inheritance​

Properties​

CurrentIndex​

Returns the current division index.

public int CurrentIndex { get; }

Property Value​

int

DivideCount​

Returns the total number of divisions (rows × columns).

public int DivideCount { get; }

Property Value​

int

Methods​

SetIndex(int)​

Set the texture offset and tiling to display the texture region corresponding to the given index.

public void SetIndex(int index)

Parameters​

NameTypeDescription
indexintIndex of the texture division to display.