ドキュメント

Unity Engine

Unity Engine

ChangeEvent<T>

Sends an event when a value in a field changes.
読み終わるまでの所要時間 2 分最終更新 1ヶ月前

Definition

public class ChangeEvent<T> : EventBase<ChangeEvent<T>>, IDisposable, IChangeEvent

Constructors

Constructor

Description

ChangeEvent`1()Constructor.

Properties

Property

Description

newValueThe new value.
previousValueThe value before the change occured.

Methods

Method

Description

InitSets the event to its initial state.

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