跳到主要内容
版本:1.5.x

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
TypeName
System.StringsavePath

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
TypeName
System.StringassetPath