Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


variantCount

The number of shader variants contained in this collection.
Read time 1 minuteLast updated 6 days ago

Definition

public int variantCount { get; }

Remarks

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