Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TextureSlotCount

The number of textures that UI Toolkit can bind simultaneously to the shader to reduce draw calls.
Read time 1 minuteLast updated 9 days ago

Definition

public enum TextureSlotCount

Remarks

Additional Resources: PanelSettings.textureSlotCount

Fields

Value

Description

EightUI Toolkit can bind up to eight textures to the shader at once. It uses three nested dynamic branches to select the appropriate texture. ///
FourUI Toolkit can bind up to four textures to the shader at once. It uses two nested dynamic branches to select the appropriate texture.
OneUI Toolkit can bind only one texture to the shader at once. No dynamic branching is required to select the texture.
TwoUI Toolkit can bind up to two textures to the shader at once. It uses one dynamic branch to select the appropriate texture.