docs.unity3d.com
    目次を表示する/隠す

    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
    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
    Boolean

    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

    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)
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)