Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ChangeEvent<T>

Sends an event when a value in a field changes.
Read time 2 minutesLast updated 2 days ago

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