A class providing a simple GUI for selecting a key from the root.
More...
|
| static bool | autoRefresh = false |
| | If the SelectKeyGUI should continously refresh the key list. More...
|
| |
A class providing a simple GUI for selecting a key from the root.
| static void SmartLocalization.Editor.LocalizedKeySelector.RefreshList |
( |
bool |
sort, |
|
|
LocalizedObjectType |
sortType |
|
) |
| |
|
static |
Refreshes the list containing the selectable keys
- Parameters
-
| sort | If the refreshed list should be sorted and filtered with a certain key type |
| sortType | The key type to use as filter |
| static string SmartLocalization.Editor.LocalizedKeySelector.SelectKeyGUI |
( |
string |
currentKey, |
|
|
bool |
sort = false, |
|
|
LocalizedObjectType |
sortType = LocalizedObjectType.INVALID |
|
) |
| |
|
static |
Call this from OnInspectorGUI in your own editor class. It will create buttons and a selectable popup with all the keys available.
- Parameters
-
| currentKey | The currently chosen key |
| sort | If the select key GUI should filter keys with a certain type |
| sortType | If sort is true, this is the type of keys that will be shown. |
- Returns
- The currently chosen key
| static bool SmartLocalization.Editor.LocalizedKeySelector.ShouldShowKeySelector |
( |
| ) |
|
|
static |
Returns if the key selector should be shown.
- Returns
- Returns if the key selector should be shown.
| bool SmartLocalization.Editor.LocalizedKeySelector.autoRefresh = false |
|
static |
If the SelectKeyGUI should continously refresh the key list.
The documentation for this class was generated from the following file:
- Assets/SmartLocalization/Scripts/Editor/Utility/LocalizedKeySelector.cs