EditModeIntervalCallbacks Class Reference

this class provides the user with the ability to have function called at a constant time intervals while in the editor.
The function will be invoked at the provided interval once registered, and will continue to be until unregistered.
The code that calls the registration function is also responsible for unregistering, before the delegate goes out of scope(is destroyed). If any member functions are called when not in the editor, they will do nothing and return immediately.

Detailed Description

See also
Example usage: MonoBehaviourEditModeUpdatable.cs

Public Member Functions

delegate void IntervalCallback ()
 Defines the signature of the callback function: no parameters, no return value. (Just do it.)
 

Static Public Member Functions

static void Process ()
 This is the only callback function ACTUALLY registers with the EditorApplication.update delegate.
This function will iterate through all the callbacks the user has registered with THIS class, and if the appropriate time interval has passed, invoke them. If called when not in the editor, does nothing and returns immediately.
 
static void Register (float timeInterval, IntervalCallback callback)
 Static function used to register callback functions. IT allows the user to specify the time internal, and which function should be called. If called when not in the editor, does nothing and returns immediately.
 
static void UnRegister (IntervalCallback callback)
 This function is used to prevent a previously registered callback function from being called any more. If called when not in the editor, does nothing and returns immediately.