Skip to main content
Version: 2.2.x

Class ShaderVariantCollectionManifest

Assembly: YooAsset.Editor.dll
View Source
Declaration
[Serializable]
public class ShaderVariantCollectionManifest

Fields

ShaderTotalCount

Number of shaders in this collection

View Source
Declaration
public int ShaderTotalCount

VariantTotalCount

Number of total varians in this collection

View Source
Declaration
public int VariantTotalCount

ShaderVariantInfos

Shader variants info list.

View Source
Declaration
public List<ShaderVariantCollectionManifest.ShaderVariantInfo> ShaderVariantInfos

Methods

AddShaderVariant(string, string, PassType, string[])

添加着色器变种信息

View Source
Declaration
public void AddShaderVariant(string assetPath, string shaderName, PassType passType, string[] keywords)
Parameters
TypeName
System.StringassetPath
System.StringshaderName
UnityEngine.Rendering.PassTypepassType
System.String[]keywords

Extract(ShaderVariantCollection)

解析SVC文件并将数据写入到清单

View Source
Declaration
public static ShaderVariantCollectionManifest Extract(ShaderVariantCollection svc)
Returns

YooAsset.Editor.ShaderVariantCollectionManifest

Parameters
TypeName
UnityEngine.ShaderVariantCollectionsvc