public static IEnumerable <ShaderVariant> GetAllVariants(this ShaderVariantCollection collection) { if (collection == null) { return(new List <ShaderVariant>()); } return(collection.GetProxy().AllVariants); }