Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

TextureSlotCount

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

The number of textures that UI Toolkit can bind simultaneously to the shader to reduce draw calls.

Additional resources: PanelSettings.textureSlotCount

Properties

Property Description
One UI Toolkit can bind only one texture to the shader at once. No dynamic branching is required to select the texture.
Two UI Toolkit can bind up to two textures to the shader at once. It uses one dynamic branch to select the appropriate texture.
Four UI Toolkit can bind up to four textures to the shader at once. It uses two nested dynamic branches to select the appropriate texture.
Eight UI Toolkit can bind up to eight textures to the shader at once. It uses three nested dynamic branches to select the appropriate texture. ///