gurkan.erdinc.temp2 #34
Binary file not shown.
Binary file not shown.
@ -659,5 +659,38 @@ void ULuckyRobotsGameInstance::LuckyRobots()
|
||||
Name = Name.Replace(TEXT("ERobotsName::"), TEXT(""));
|
||||
GameUserWidget->DoLogItemAdd("Robot:", Name, ELogItemType::Consol);
|
||||
UE_LOG(LogTemp, Display, TEXT("Robot: %s"), *Name);
|
||||
if (GEngine)
|
||||
{
|
||||
GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor::Blue, FString::Printf(TEXT("Robot selected: %s"), *Name));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
EUnrealBuildType ULuckyRobotsGameInstance::CheckBuildConfiguration() const
|
||||
{
|
||||
#if UE_BUILD_DEBUG
|
||||
{
|
||||
UE_LOG(LogTemp, Warning, TEXT("This is a Debug build"));
|
||||
return EUnrealBuildType::Debug;
|
||||
}
|
||||
#elif UE_BUILD_DEVELOPMENT
|
||||
{
|
||||
UE_LOG(LogTemp, Warning, TEXT("This is a Development build"));
|
||||
return EUnrealBuildType::Development;
|
||||
}
|
||||
#elif UE_BUILD_TEST
|
||||
{
|
||||
UE_LOG(LogTemp, Warning, TEXT("This is a Test build"));
|
||||
return EUnrealBuildType::Test;
|
||||
}
|
||||
#elif UE_BUILD_SHIPPING
|
||||
{
|
||||
return EUnrealBuildType::Shipping;
|
||||
UE_LOG(LogTemp, Warning, TEXT("This is a Shipping build"));
|
||||
}
|
||||
#else
|
||||
{
|
||||
UE_LOG(LogTemp, Warning, TEXT("Unknown build configuration"));
|
||||
return EUnrealBuildType::None;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -328,4 +328,7 @@ public:
|
||||
UFUNCTION(exec)
|
||||
void LuckyRobots();
|
||||
|
||||
UFUNCTION(BlueprintPure)
|
||||
EUnrealBuildType CheckBuildConfiguration() const;
|
||||
|
||||
};
|
||||
|
@ -35,6 +35,15 @@ enum class ERobotsName : uint8
|
||||
SO100Robot UMETA(DisplayName = "SO100 Arm Robot")
|
||||
};
|
||||
|
||||
UENUM(BlueprintType)
|
||||
enum class EUnrealBuildType : uint8
|
||||
{
|
||||
None UMETA(DisplayName = "Unknown build configuration"),
|
||||
Debug UMETA(DisplayName = "Debug build configuration"),
|
||||
Development UMETA(DisplayName = "Development build configuration"),
|
||||
Shipping UMETA(DisplayName = "Shipping build configuration")
|
||||
};
|
||||
|
||||
UENUM(BlueprintType)
|
||||
enum class ELevelType : uint8
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user