docs.unity3d.com
    Show / Hide Table of Contents

    Interface IElementAdder<TContext>

    Interface for an object which adds elements to a context object of the type TContext.

    Namespace: Unity.VisualScripting.ReorderableList.Element_Adder_Menu
    Syntax
    public interface IElementAdder<TContext>
    Type Parameters
    Name Description
    TContext

    Type of the context object that elements can be added to.

    Properties

    Object

    Gets the context object.

    Declaration
    TContext Object { get; }
    Property Value
    Type Description
    TContext

    Methods

    AddElement(Type)

    Adds an element of the specified type to the associated context object.

    Declaration
    object AddElement(Type type)
    Parameters
    Type Name Description
    Type type

    Type of element to add.

    Returns
    Type Description
    Object

    The new element.

    CanAddElement(Type)

    Determines whether a new element of the specified type can be added to the associated context object.

    Declaration
    bool CanAddElement(Type type)
    Parameters
    Type Name Description
    Type type

    Type of element to add.

    Returns
    Type Description
    Boolean

    A value of true if an element of the specified type can be added; otherwise, a value of false.

    Extension Methods

    XAnalyserProvider.Analyser(Object, IGraphContext)
    XAnalyserProvider.Analyser<TAnalyser>(Object, IGraphContext)
    XAnalyserProvider.Analysis(Object, IGraphContext)
    XAnalyserProvider.Analysis<TAnalysis>(Object, IGraphContext)
    XAnalyserProvider.Analyser(Object, GraphReference)
    XAnalyserProvider.Analyser<TAnalyser>(Object, GraphReference)
    XAnalyserProvider.Analysis(Object, GraphReference)
    XAnalyserProvider.Analysis<TAnalysis>(Object, GraphReference)
    XDescriptorProvider.Describe(Object)
    XDescriptorProvider.HasDescriptor(Object)
    XDescriptorProvider.Descriptor(Object)
    XDescriptorProvider.Descriptor<TDescriptor>(Object)
    XDescriptorProvider.Description(Object)
    XDescriptorProvider.Description<TDescription>(Object)
    Cloning.Clone(Object, ICloner, Boolean)
    Cloning.Clone<T>(T, ICloner, Boolean)
    Cloning.CloneViaFakeSerialization(Object)
    Cloning.CloneViaFakeSerialization<T>(T)
    ConversionUtility.IsConvertibleTo(Object, Type, Boolean)
    ConversionUtility.IsConvertibleTo<T>(Object, Boolean)
    ConversionUtility.ConvertTo(Object, Type)
    ConversionUtility.ConvertTo<T>(Object)
    TypeUtility.ToShortString(Object, Int32)
    Serialization.CloneViaSerialization<T>(T, Boolean)
    Serialization.CloneViaSerializationInto<TSource, TDestination>(TSource, ref TDestination, Boolean)
    Serialization.Serialize(Object, Boolean)
    LinqUtility.Yield<T>(T)
    UnityObjectUtility.IsUnityNull(Object)
    UnityObjectUtility.ToSafeString(Object)
    Back to top
    Terms of use
    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