UEnum
Inheritance
Methods
GetNameByValue(integer Value)
- Return type:
FName - Returns: the
FNamethat corresponds to the specified value.
ForEachName(LuaFunction Callback)
- Iterates every
FName/Valuecombination that belongs to this enum. - The callback has two params:
FName Name,integer Value. - Return
truein the callback to stop iterating.
GetEnumNameByIndex(integer Index)
- Return types:
FName,Integer - Returns: the
FNamethat coresponds the givenIndex. - Returns: the
Integervalue that coresponds the givenIndex.
InsertIntoNames(string Name, integer Value, integer Index, boolean ShiftValues = true)
- Inserts a
FName/Valuecombination into a aUEnumat 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 theUEnumand replace itsNamewith the givenNewName.
EditValueAt(integer Index, integer NewValue)
- At a given
Index, will modify the found element in theUEnumand replace its value with the givenNewValue.
RemoveFromNamesAt(integer Index, integer Count = 1, boolean AllowShrinking = true)
- Will remove
Countelement(s) at the givenIndexfrom aUEnum. - If
AllowShrinkning = true, will shrink the enum array when removing elements.
小莫的维基库