any event after the ExposeOnSpawn variable gets its value?
UCLASS(Blueprintable, BlueprintType)
class SOME_API UMyObj : public UObject
{
GENERATED_BODY()
public:
UMyObj()
{
OtherVar = Var;
UE_LOG(LogTemp, Warning, TEXT(" Var = %d, OtherVar = %d"), Var, OtherVar);
}
virtual void PostInitProperties() override
{
Super::PostInitProperties();
OtherVar = Var;
UE_LOG(LogTemp, Warning, TEXT(" Var = %d, OtherVar = %d"), Var, OtherVar);
}
UPROPERTY(BlueprintReadOnly, EditAnywhere, Meta = (ExposeOnSpawn = "true"))/*, Meta = (ExposeOnSpawn = "true")//wrong object initialization*/
int32 Var = -1;
private:
int32 OtherVar = -1;
};
LogTemp: Warning: Var = -1, OtherVar = -1
LogTemp: Warning: Var = -1, OtherVar = -1
LogBlueprintUserMessages: [MyGameState_C_0] 123