Files
UnrealEngineUWP/Engine/Platforms/VisionOS/Source/Runtime/VisionOSRuntimeSettings/Classes/VisionOSRuntimeSettings.h
jeff fisher 1c32e0a777 UE-204751 VisionOS -> visionOS in all user facing strings.
-Fixed plugin project settings UI duplication (settings were displayed twice).
#jira UE-204751
#rb erica.stella

[CL 30923415 by jeff fisher in ue5-main branch]
2024-01-26 10:00:20 -05:00

42 lines
1.5 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/Object.h"
#include "Logging/LogMacros.h"
#include "VisionOSRuntimeSettings.generated.h"
DECLARE_LOG_CATEGORY_EXTERN(LogVisionOSRuntimeSettings, Log, All);
/**
* Implements the settings for the VisionOS target platform.
*/
UCLASS(config=Engine, defaultconfig)
class VISIONOSRUNTIMESETTINGS_API UVisionOSRuntimeSettings : public UObject
{
public:
GENERATED_UCLASS_BODY()
// Use VisionOS .ini files in the editor
virtual const TCHAR* GetConfigOverridePlatform() const override
{
return TEXT("VisionOS");
}
#if WITH_EDITOR
virtual void PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent) override;
virtual void PostInitProperties() override;
#endif // WITH_EDITOR
// When building for visionOS, default to Full Immersion mode. If disabled, switches to Window mode. Note: when enabled,
// the @main struct in UESwift.swift becomes the new main(). Plus, UIApplicationSceneManifest is auto-generation for Info.plist
UPROPERTY(config, EditAnywhere, Category = Build, Meta = (DisplayName = "Enable visionOS's Immersion Mode (Experimental)", ConfigRestartRequired = true))
bool bUseSwiftUIMain;
// If checked, the Swift/ObjC bridging headers will be created.
UPROPERTY(config, EditAnywhere, Category = Build, Meta = (DisplayName = "Create Swift/ObjC Bridging Headers", ConfigRestartRequired = true))
bool bCreateBridgingHeader;
};