docs.unity3d.com
    Show / Hide Table of Contents

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023