I am seeing very odd behavior with actor labels that could be observed in the world outliner.
I have a simple example:
spawnParams.Name = "NewActor";
AActor* actor = GetWorld()->SpawnActor(ADirectionalLight::StaticClass(), &FVector::ZeroVector, &FRotator::ZeroRotator, spawnParams);
The resulting actor label will appear as
The offending code starts on line 629 in
// Don't bother adding a suffix for number '0'
const int32 NameNumber = NAME_INTERNAL_TO_EXTERNAL( GetFName().GetNumber() );
if( NameNumber != 0 )
In this case
GetNumber() returns 0 and the internal to external conversion gets -1 and that's what gets appended to the label.
Something about this seems odd and perhaps a bug? Would be great to get some feedback.
Feb 18 '16 at 11:42 PM
in C++ Programming