Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#
Experimental: this API is experimental and might be changed or removed in the future.

GraphicsStateCollection.variantCount

public int variantCount;

Description

The number of shader variants contained in this collection.

Each shader variant may have associated graphics states that are used when prewarming to create accurate GPU representations.