docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

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

    Inheritance
    object
    KeywordDependentCollection<TStorage, TAll, TAllPermutations, TForPermutation, TBase, TIInstance, TISet>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.ShaderGraph.Internal
    Assembly: Unity.ShaderGraph.Editor.dll
    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

    this[int]

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

    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

    permutationCount

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

    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(int)

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

    GetOrCreateForPermutationIndex(int)

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

    SetForPermutationIndex(int, TStorage)

    Declaration
    protected void SetForPermutationIndex(int index, TStorage value)
    Parameters
    Type Name Description
    int index
    TStorage value
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)