UEnum
Inheritance
Methods
GetNameByValue(integer Value)
- Return type:
FName
- Returns: the
FName
that corresponds to the specified value.
ForEachName(LuaFunction Callback)
- Iterates every
FName
/Value
combination that belongs to this enum. - The callback has two params:
FName Name
,integer Value
. - Return
true
in the callback to stop iterating.
GetEnumNameByIndex(integer Index)
- Return types:
FName
,Integer
- Returns: the
FName
that coresponds the givenIndex
. - Returns: the
Integer
value that coresponds the givenIndex
.
InsertIntoNames(string Name, integer Value, integer Index, boolean ShiftValues = true)
- Inserts a
FName
/Value
combination into a aUEnum
at the givenIndex
. - If
ShiftValues = true
, will shift all enum values greater than inserted value by one.
EditNameAt(integer Index, string NewName)
- At a given
Index
, will modify the found element in theUEnum
and replace itsName
with the givenNewName
.
EditValueAt(integer Index, integer NewValue)
- At a given
Index
, will modify the found element in theUEnum
and replace its value with the givenNewValue
.
RemoveFromNamesAt(integer Index, integer Count = 1, boolean AllowShrinking = true)
- Will remove
Count
element(s) at the givenIndex
from aUEnum
. - If
AllowShrinkning = true
, will shrink the enum array when removing elements.