docs.unity3d.com
    显示 / 隐藏目录

    Class KeywordDependentCollection<TStorage, TAll, TAllPermutations, TForPermutation, TBase, TIInstance, TISet>

    Inheritance
    Object
    KeywordDependentCollection<TStorage, TAll, TAllPermutations, TForPermutation, TBase, TIInstance, TISet>
    Namespace: UnityEditor.ShaderGraph.Internal
    Syntax
    public abstract class KeywordDependentCollection<TStorage, TAll, TAllPermutations, TForPermutation, TBase, TIInstance, TISet>
        where TStorage : new()
        where TAll : TISet where TAllPermutations : TISet where TForPermutation : TISet, TIInstance where TBase : TISet, TIInstance where TIInstance : KeywordDependentCollection.IInstance where TISet : KeywordDependentCollection.ISet<TIInstance>
    Type Parameters
    Name Description
    TStorage
    TAll
    TAllPermutations
    TForPermutation
    TBase
    TIInstance
    TISet

    Properties

    all

    Declaration
    public TAll all { get; }
    Property Value
    Type Description
    TAll

    allPermutations

    Declaration
    public TAllPermutations allPermutations { get; }
    Property Value
    Type Description
    TAllPermutations

    baseInstance

    All permutation will inherit from base's active fields

    Declaration
    public TBase baseInstance { get; }
    Property Value
    Type Description
    TBase

    baseStorage

    Declaration
    protected TStorage baseStorage { get; set; }
    Property Value
    Type Description
    TStorage

    Item[Int32]

    Declaration
    public TForPermutation this[int index] { get; }
    Parameters
    Type Name Description
    Int32 index
    Property Value
    Type Description
    TForPermutation

    permutationCount

    Declaration
    public int permutationCount { get; }
    Property Value
    Type Description
    Int32

    permutationStorages

    Declaration
    protected IEnumerable<TStorage> permutationStorages { get; }
    Property Value
    Type Description
    IEnumerable<TStorage>

    Methods

    CreateAllPermutationsSmartPointer()

    Declaration
    protected abstract TAllPermutations CreateAllPermutationsSmartPointer()
    Returns
    Type Description
    TAllPermutations

    CreateAllSmartPointer()

    Declaration
    protected abstract TAll CreateAllSmartPointer()
    Returns
    Type Description
    TAll

    CreateBaseSmartPointer()

    Declaration
    protected abstract TBase CreateBaseSmartPointer()
    Returns
    Type Description
    TBase

    CreateForPermutationSmartPointer(Int32)

    Declaration
    protected abstract TForPermutation CreateForPermutationSmartPointer(int index)
    Parameters
    Type Name Description
    Int32 index
    Returns
    Type Description
    TForPermutation

    GetOrCreateForPermutationIndex(Int32)

    Declaration
    protected TStorage GetOrCreateForPermutationIndex(int index)
    Parameters
    Type Name Description
    Int32 index
    Returns
    Type Description
    TStorage

    SetForPermutationIndex(Int32, TStorage)

    Declaration
    protected void SetForPermutationIndex(int index, TStorage value)
    Parameters
    Type Name Description
    Int32 index
    TStorage value
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)