Value Changed Delegates
Overview
Almost all EZ GUI controls allow you to be notified when their values change by passing a delegate to the control's AddValueChangedDelegate() method. Such a delegate must conform to the EZInputDelegate definition:
This delegate receives a reference to the control object the value of which has changed. This allows you to immediately respond when the value of a control is modified by the user.
|
Example
Let's see an example of how to get the value of multiple controls with a single function:
using UnityEngine;
// The below references should be populated
This delegate receives a reference to the control object the value of which has changed. This allows you to immediately respond when the value of a control is modified by the user.
|