Word Game Builder 2.0.1f2
Reference Manual
Static Public Member Functions | List of all members
WGBEditorHelpers Class Reference

Contains helper methods for custom inspectors and windows. More...

+ Collaboration diagram for WGBEditorHelpers:

Static Public Member Functions

static void DrawEvent (SerializedProperty eventProperty)
 Draws the inspector for a WGBEvent. More...
 
static T GetTargetObject< T > (SerializedProperty prop)
 Gets the target object from a serialized property. More...
 
static void LoadLanguageWithProgressBar (string identifier, System.Action callback, System.Action cancelCallback)
 Loads a language with a progress bar. More...
 

Detailed Description

Contains helper methods for custom inspectors and windows.

Member Function Documentation

static void DrawEvent ( SerializedProperty  eventProperty)
inlinestatic

Draws the inspector for a WGBEvent.

Currently, multiple object selection is not supported.

Parameters
eventPropertyA serialized property representing the event.

+ Here is the call graph for this function:

static T GetTargetObject< T > ( SerializedProperty  prop)
inlinestatic

Gets the target object from a serialized property.

Returns
The target object.
Parameters
propThe property to inspect.
Template Parameters
TThe type of the inspected object.
static void LoadLanguageWithProgressBar ( string  identifier,
System.Action  callback,
System.Action  cancelCallback 
)
inlinestatic

Loads a language with a progress bar.

Parameters
identifierThe language's identifier.
callbackAn action to run after the language is loaded.
cancelCallbackAn action to run if the language load is canceled.

+ Here is the call graph for this function: