Ejemplo n.º 1
0
FText FCategoryPropertyNode::GetDisplayName() const 
{
	FString SubcategoryName = GetSubcategoryName();
	if ( FPropertySettings::Get().ShowFriendlyPropertyNames() )
	{
		//if there is a localized version, return that
		FText LocalizedName;
		if ( FText::FindText( TEXT("UObjectCategories"), *SubcategoryName, /*OUT*/LocalizedName ) )
		{
			return LocalizedName;
		}

		//if in "readable display name mode" return that
		return FText::FromString( FName::NameToDisplayString( SubcategoryName, false ) );
	}
	return FText::FromString( SubcategoryName );
}	
FText FCategoryPropertyNode::GetDisplayName() const 
{
	FString SubcategoryName = GetSubcategoryName();
	return FText::FromString( SubcategoryName );
}