ドキュメント

Unity Engine

Unity Engine

PointerCaptureEventBase<T>

Base class for pointer capture events and mouse capture events.
読み終わるまでの所要時間 2 分最終更新 1ヶ月前

Definition

public abstract class PointerCaptureEventBase<T> : EventBase<T>, IDisposable, IPointerCaptureEvent where T : PointerCaptureEventBase<T>, new()

Remarks

Refer to the Capture events manual page for more information and examples.

Properties

Property

Description

pointerIdIdentifies the pointer that sends the event.
relatedTargetFor PointerCaptureEvent and MouseCaptureEvent, returns the VisualElement that loses the pointer capture, if any. For PointerCaptureOutEvent and MouseCaptureOutEvent, returns the VisualElement that captures the pointer.

Methods

Method

Description

InitResets the event members to their initial values.

Static Methods

Method

Description

GetPooledGets an event from the event pool and initializes it with the given values. Use this function instead of creating new events. Events obtained using this method need to be released back to the pool. You can use
Dispose()
to release them.

Inheritance