EGDL2 2.1
Loading...
Searching...
No Matches
Enablegames.StringListWidget Class Reference

Represents a widget for displaying a list of strings. More...

Inheritance diagram for Enablegames.StringListWidget:
Collaboration diagram for Enablegames.StringListWidget:

Public Member Functions

void showOnlySelected (string selection)
 Hard coded method to show only SUKI files in certain folder.
 
override void UpdateParameter (object o)
 Updates the parameter value based on the input object.
 
IEnumerator SetIconFromStreaming (Transform parentTransform, string spriteFile, Action onSuccess)
 Loads a texture from the streaming assets folder and sets it as an icon on the specified parent transform.
 

Detailed Description

Represents a widget for displaying a list of strings.

Member Function Documentation

◆ SetIconFromStreaming()

IEnumerator Enablegames.StringListWidget.SetIconFromStreaming ( Transform parentTransform,
string spriteFile,
Action onSuccess )
inline

Loads a texture from the streaming assets folder and sets it as an icon on the specified parent transform.

Parameters
parentTransformThe parent transform to set the icon on.
spriteFileThe file name of the icon sprite.
onSuccessThe callback function to be executed on successful loading and setting of the icon.
Returns
An IEnumerator.

◆ showOnlySelected()

void Enablegames.StringListWidget.showOnlySelected ( string selection)
inline

Hard coded method to show only SUKI files in certain folder.

Parameters
selectionselect the folder to show

◆ UpdateParameter()

override void Enablegames.StringListWidget.UpdateParameter ( object o)
inlinevirtual

Updates the parameter value based on the input object.

Parameters
oThe input object.
Exceptions
ApplicationExceptionThrown when there is a mismatch between the widget and parameter type.

Reimplemented from Enablegames.ParameterWidget.

Here is the call graph for this function:

The documentation for this class was generated from the following file: