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

    Class GraphElementWidget<TCanvas, TElement>

    Inheritance
    Object
    Widget<TCanvas, TElement>
    GraphElementWidget<TCanvas, TElement>
    GraphGroupWidget
    NodeWidget<TCanvas, TNode>
    UnitConnectionWidget<TConnection>
    Inherited Members
    Widget<TCanvas, TElement>.context
    Widget<TCanvas, TElement>.reference
    Widget<TCanvas, TElement>.graph
    Widget<TCanvas, TElement>.canvas
    Widget<TCanvas, TElement>.IWidget.canvas
    Widget<TCanvas, TElement>.selection
    Widget<TCanvas, TElement>.window
    Widget<TCanvas, TElement>.mousePosition
    Widget<TCanvas, TElement>.disposed
    Widget<TCanvas, TElement>.Dispose()
    Widget<TCanvas, TElement>.e
    Widget<TCanvas, TElement>.ToString()
    Widget<TCanvas, TElement>.subWidgets
    Widget<TCanvas, TElement>.SubWidgetsChanged()
    Widget<TCanvas, TElement>.item
    Widget<TCanvas, TElement>.IWidget.item
    Widget<TCanvas, TElement>.hasDescriptor
    Widget<TCanvas, TElement>.metadata
    Widget<TCanvas, TElement>.FetchMetadata()
    Widget<TCanvas, TElement>.CacheItemFirstTime()
    Widget<TCanvas, TElement>.CacheItem()
    Widget<TCanvas, TElement>.CacheMetadata()
    Widget<TCanvas, TElement>.CacheDescription()
    Widget<TCanvas, TElement>.RegisterControl()
    Widget<TCanvas, TElement>.BeforeFrame()
    Widget<TCanvas, TElement>.HandleCapture()
    Widget<TCanvas, TElement>.HandleInput()
    Widget<TCanvas, TElement>.HandleRelease()
    Widget<TCanvas, TElement>.Update()
    Widget<TCanvas, TElement>.snapToGrid
    Widget<TCanvas, TElement>.isPositionValid
    Widget<TCanvas, TElement>.positionDependers
    Widget<TCanvas, TElement>.positionDependencies
    Widget<TCanvas, TElement>.position
    Widget<TCanvas, TElement>.zIndex
    Widget<TCanvas, TElement>.Reposition()
    Widget<TCanvas, TElement>.CachePositionFirstPass()
    Widget<TCanvas, TElement>.CachePosition()
    Widget<TCanvas, TElement>.BringToFront()
    Widget<TCanvas, TElement>.SendToBack()
    Widget<TCanvas, TElement>.canClip
    Widget<TCanvas, TElement>.clippingPosition
    Widget<TCanvas, TElement>.OnViewportChange()
    Widget<TCanvas, TElement>.isVisible
    Widget<TCanvas, TElement>.hotArea
    Widget<TCanvas, TElement>.isMouseThrough
    Widget<TCanvas, TElement>.isMouseOver
    Widget<TCanvas, TElement>.OnContext()
    Widget<TCanvas, TElement>.HandleContext()
    Widget<TCanvas, TElement>.contextOptions
    Widget<TCanvas, TElement>.debug
    Widget<TCanvas, TElement>.foregroundRequiresInput
    Widget<TCanvas, TElement>.backgroundRequiresInput
    Widget<TCanvas, TElement>.overlayRequiresInput
    Widget<TCanvas, TElement>.DrawForeground()
    Widget<TCanvas, TElement>.DrawBackground()
    Widget<TCanvas, TElement>.DrawOverlay()
    Widget<TCanvas, TElement>.dim
    Widget<TCanvas, TElement>.BeginDim()
    Widget<TCanvas, TElement>.EndDim()
    Widget<TCanvas, TElement>.UpdateDim()
    Namespace: Unity.VisualScripting
    Syntax
    public abstract class GraphElementWidget<TCanvas, TElement> : Widget<TCanvas, TElement>, IGraphElementWidget, IWidget, IDisposable where TCanvas : class, ICanvas where TElement : class, IGraphElement
    Type Parameters
    Name Description
    TCanvas
    TElement

    Constructors

    GraphElementWidget(TCanvas, TElement)

    Declaration
    protected GraphElementWidget(TCanvas canvas, TElement element)
    Parameters
    Type Name Description
    TCanvas canvas
    TElement element

    Fields

    maxResizeSize

    Declaration
    protected Vector2 maxResizeSize
    Field Value
    Type Description
    Vector2

    minResizeSize

    Declaration
    protected Vector2 minResizeSize
    Field Value
    Type Description
    Vector2

    resizeInnerOffset

    Declaration
    protected readonly RectOffset resizeInnerOffset
    Field Value
    Type Description
    RectOffset

    resizeOuterOffset

    Declaration
    protected readonly RectOffset resizeOuterOffset
    Field Value
    Type Description
    RectOffset

    Properties

    canAlignAndDistribute

    Declaration
    public virtual bool canAlignAndDistribute { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IGraphElementWidget.canAlignAndDistribute

    canCopy

    Declaration
    public virtual bool canCopy { get; }
    Property Value
    Type Description
    Boolean

    canDelete

    Declaration
    public virtual bool canDelete { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IGraphElementWidget.canDelete

    canDrag

    Declaration
    public virtual bool canDrag { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IGraphElementWidget.canDrag

    canResize

    Declaration
    public bool canResize { get; }
    Property Value
    Type Description
    Boolean

    canResizeHorizontal

    Declaration
    public virtual bool canResizeHorizontal { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IGraphElementWidget.canResizeHorizontal

    canResizeVertical

    Declaration
    public virtual bool canResizeVertical { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IGraphElementWidget.canResizeVertical

    canSelect

    Declaration
    public virtual bool canSelect { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IGraphElementWidget.canSelect

    contextOptions

    Declaration
    protected override IEnumerable<DropdownOption> contextOptions { get; }
    Property Value
    Type Description
    IEnumerable<DropdownOption>
    Overrides
    Unity.VisualScripting.Widget<TCanvas, TElement>.contextOptions

    element

    Declaration
    public TElement element { get; }
    Property Value
    Type Description
    TElement

    headerPosition

    Declaration
    protected Rect headerPosition { get; set; }
    Property Value
    Type Description
    Rect

    isDragging

    Declaration
    public bool isDragging { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IGraphElementWidget.isDragging

    isMouseOverHeaderArea

    Declaration
    protected bool isMouseOverHeaderArea { get; }
    Property Value
    Type Description
    Boolean

    isResizing

    Declaration
    public bool isResizing { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IGraphElementWidget.isResizing

    isSelected

    Declaration
    public bool isSelected { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IGraphElementWidget.isSelected

    resizeArea

    Declaration
    protected virtual Rect resizeArea { get; }
    Property Value
    Type Description
    Rect

    zIndex

    Declaration
    public override float zIndex { get; set; }
    Property Value
    Type Description
    Single
    Overrides
    Unity.VisualScripting.Widget<TCanvas, TElement>.zIndex
    Implements
    IWidget.zIndex

    Methods

    AddCursorRect(Rect, MouseCursor)

    Declaration
    public void AddCursorRect(Rect rect, MouseCursor cursor)
    Parameters
    Type Name Description
    Rect rect
    MouseCursor cursor

    BeforeFrame()

    Declaration
    public override void BeforeFrame()
    Overrides
    Unity.VisualScripting.Widget<TCanvas, TElement>.BeforeFrame()
    Implements
    IWidget.BeforeFrame()

    BeginDrag()

    Declaration
    public void BeginDrag()
    Implements
    IGraphElementWidget.BeginDrag()

    Delete()

    Declaration
    public void Delete()
    Implements
    IGraphElementWidget.Delete()

    Dispose()

    Declaration
    public override void Dispose()
    Overrides
    Unity.VisualScripting.Widget<TCanvas, TElement>.Dispose()

    Drag(Vector2, Vector2)

    Declaration
    public void Drag(Vector2 delta, Vector2 constraint)
    Parameters
    Type Name Description
    Vector2 delta
    Vector2 constraint
    Implements
    IGraphElementWidget.Drag(Vector2, Vector2)

    DrawOverlay()

    Declaration
    public override void DrawOverlay()
    Overrides
    Unity.VisualScripting.Widget<TCanvas, TElement>.DrawOverlay()
    Implements
    IWidget.DrawOverlay()

    EndDrag()

    Declaration
    public void EndDrag()
    Implements
    IGraphElementWidget.EndDrag()

    ExpandCopyGroup(HashSet<IGraphElement>)

    Declaration
    public virtual void ExpandCopyGroup(HashSet<IGraphElement> copyGroup)
    Parameters
    Type Name Description
    HashSet<IGraphElement> copyGroup
    Implements
    IGraphElementWidget.ExpandCopyGroup(HashSet<IGraphElement>)

    ExpandDeleteGroup(HashSet<IGraphElement>)

    Declaration
    public virtual void ExpandDeleteGroup(HashSet<IGraphElement> deleteGroup)
    Parameters
    Type Name Description
    HashSet<IGraphElement> deleteGroup
    Implements
    IGraphElementWidget.ExpandDeleteGroup(HashSet<IGraphElement>)

    ExpandDragGroup(HashSet<IGraphElement>)

    Declaration
    public virtual void ExpandDragGroup(HashSet<IGraphElement> dragGroup)
    Parameters
    Type Name Description
    HashSet<IGraphElement> dragGroup
    Implements
    IGraphElementWidget.ExpandDragGroup(HashSet<IGraphElement>)

    FetchMetadata()

    Declaration
    public override Metadata FetchMetadata()
    Returns
    Type Description
    Metadata
    Overrides
    Unity.VisualScripting.Widget<TCanvas, TElement>.FetchMetadata()

    GetData<T>()

    Declaration
    protected T GetData<T>()
        where T : IGraphElementData
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetDebugData<T>()

    Declaration
    protected T GetDebugData<T>()
        where T : IGraphElementDebugData
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    HandleCapture()

    Declaration
    public override void HandleCapture()
    Overrides
    Unity.VisualScripting.Widget<TCanvas, TElement>.HandleCapture()
    Implements
    IWidget.HandleCapture()

    HandleDoubleClick()

    Declaration
    protected virtual void HandleDoubleClick()

    HandleInput()

    Declaration
    public override void HandleInput()
    Overrides
    Unity.VisualScripting.Widget<TCanvas, TElement>.HandleInput()
    Implements
    IWidget.HandleInput()

    LockDragOrigin()

    Declaration
    public void LockDragOrigin()
    Implements
    IGraphElementWidget.LockDragOrigin()

    OnContext()

    Declaration
    protected override void OnContext()
    Overrides
    Unity.VisualScripting.Widget<TCanvas, TElement>.OnContext()

    OnDoubleClick()

    Declaration
    protected virtual void OnDoubleClick()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Unity.VisualScripting.Widget<TCanvas, TElement>.ToString()

    Explicit Interface Implementations

    IGraphElementWidget.element

    Declaration
    IGraphElement IGraphElementWidget.element { get; }
    Returns
    Type Description
    IGraphElement
    Implements
    IGraphElementWidget.element

    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)