Class ShaderVariantCollectionHelper
Assembly: YooAsset.Editor.dll
View Source
Declaration
public static class ShaderVariantCollectionHelper
Methods
ClearCurrentShaderVariantCollection()
View Source
Declaration
public static void ClearCurrentShaderVariantCollection()
SaveCurrentShaderVariantCollection(string)
View Source
Declaration
public static void SaveCurrentShaderVariantCollection(string savePath)
Parameters
Type | Name |
---|---|
System.String | savePath |
GetCurrentShaderVariantCollectionShaderCount()
View Source
Declaration
public static int GetCurrentShaderVariantCollectionShaderCount()
Returns
System.Int32
GetCurrentShaderVariantCollectionVariantCount()
View Source
Declaration
public static int GetCurrentShaderVariantCollectionVariantCount()
Returns
System.Int32
GetShaderVariantCount(string)
获取着色器的变种总数量
View Source
Declaration
public static string GetShaderVariantCount(string assetPath)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | assetPath |