docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IElementAdderMenuCommand<TContext>

    Interface for a menu command that can be included in an IElementAdderMenu either by annotating an implementation of the IElementAdderMenuCommand<TContext> interface with ElementAdderMenuCommandAttribute or directly by calling AddCustomCommand(IElementAdderMenuCommand<TContext>).

    Namespace: Unity.VisualScripting.ReorderableList.Element_Adder_Menu
    Assembly: Unity.VisualScripting.Core.Editor.dll
    Syntax
    public interface IElementAdderMenuCommand<TContext>
    Type Parameters
    Name Description
    TContext

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

    Properties

    Content

    Gets the content of the menu command.

    Declaration
    GUIContent Content { get; }
    Property Value
    Type Description
    GUIContent

    Methods

    CanExecute(IElementAdder<TContext>)

    Determines whether the command can be executed.

    Declaration
    bool CanExecute(IElementAdder<TContext> elementAdder)
    Parameters
    Type Name Description
    IElementAdder<TContext> elementAdder

    The associated element adder provides access to the TContext instance.

    Returns
    Type Description
    bool

    A value of true if the command can execute; otherwise, false.

    Execute(IElementAdder<TContext>)

    Executes the command.

    Declaration
    void Execute(IElementAdder<TContext> elementAdder)
    Parameters
    Type Name Description
    IElementAdder<TContext> elementAdder

    The associated element adder provides access to the TContext instance.

    Extension Methods

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