UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MacPlatformProperties.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*================================================================================
4 MacPlatformProperties.h - Basic static properties of a platform
5 These are shared between:
6 the runtime platform - via FPlatformProperties
7 the target platforms - via ITargetPlatform
8==================================================================================*/
9
10#pragma once
11
13
14
18template<bool HAS_EDITOR_DATA, bool IS_DEDICATED_SERVER, bool IS_CLIENT_ONLY>
21{
22 constexpr static UE_FORCEINLINE_HINT bool HasEditorOnlyData()
23 {
24 return HAS_EDITOR_DATA;
25 }
26
27 constexpr static UE_FORCEINLINE_HINT const char* IniPlatformName()
28 {
29 return "Mac";
30 }
31
33 {
34 return TEXT("/Script/MacTargetPlatform.MacTargetSettings");
35 }
36
37 constexpr static UE_FORCEINLINE_HINT bool IsGameOnly()
38 {
39 return UE_GAME;
40 }
41
42 constexpr static UE_FORCEINLINE_HINT bool IsServerOnly()
43 {
45 }
46
47 constexpr static UE_FORCEINLINE_HINT bool IsClientOnly()
48 {
49 return IS_CLIENT_ONLY;
50 }
51
52 constexpr static inline const char* PlatformName()
53 {
55 {
56 return "MacServer";
57 }
58
60 {
61 return "MacEditor";
62 }
63
65 {
66 return "MacClient";
67 }
68
69 return "Mac";
70 }
71
73 {
74 return !HAS_EDITOR_DATA;
75 }
76
78 {
80 }
81
83 {
84 return false;
85 }
86
88 {
89 return true;
90 }
91
93 {
94 return true;
95 }
96
98 {
99 return false;
100 }
101
102 constexpr static UE_FORCEINLINE_HINT bool SupportsQuit()
103 {
104 return true;
105 }
106
107 constexpr static inline float GetVariantPriority()
108 {
110 {
111 return 0.0f;
112 }
113
114 if (HAS_EDITOR_DATA)
115 {
116 return 0.0f;
117 }
118
119 if (IS_CLIENT_ONLY)
120 {
121 return 0.0f;
122 }
123
124 return 1.0f;
125 }
126
128 {
129 return !IsServerOnly();
130 }
131
133 {
134 return !IsServerOnly() && !HasEditorOnlyData();
135 }
136};
137
138#ifdef PROPERTY_HEADER_SHOULD_DEFINE_TYPE
140#endif
#define UE_GAME
Definition Build.h:23
#define TEXT(x)
Definition Platform.h:1272
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
#define UE_FORCEINLINE_HINT
Definition Platform.h:723
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition GenericPlatformProperties.h:17
Definition MacPlatformProperties.h:21
static constexpr UE_FORCEINLINE_HINT bool HasEditorOnlyData()
Definition MacPlatformProperties.h:22
static constexpr UE_FORCEINLINE_HINT bool SupportsMeshLODStreaming()
Definition MacPlatformProperties.h:132
static constexpr const char * PlatformName()
Definition MacPlatformProperties.h:52
static constexpr UE_FORCEINLINE_HINT bool SupportsMultipleGameInstances()
Definition MacPlatformProperties.h:82
static constexpr UE_FORCEINLINE_HINT const TCHAR * GetRuntimeSettingsClassName()
Definition MacPlatformProperties.h:32
static constexpr UE_FORCEINLINE_HINT bool HasSecurePackageFormat()
Definition MacPlatformProperties.h:77
static constexpr UE_FORCEINLINE_HINT bool IsGameOnly()
Definition MacPlatformProperties.h:37
static constexpr UE_FORCEINLINE_HINT bool SupportsQuit()
Definition MacPlatformProperties.h:102
static constexpr float GetVariantPriority()
Definition MacPlatformProperties.h:107
static constexpr UE_FORCEINLINE_HINT bool SupportsAudioStreaming()
Definition MacPlatformProperties.h:127
static constexpr UE_FORCEINLINE_HINT bool HasFixedResolution()
Definition MacPlatformProperties.h:97
static constexpr UE_FORCEINLINE_HINT bool RequiresCookedData()
Definition MacPlatformProperties.h:72
static constexpr UE_FORCEINLINE_HINT bool SupportsWindowedMode()
Definition MacPlatformProperties.h:87
static constexpr UE_FORCEINLINE_HINT bool AllowsFramerateSmoothing()
Definition MacPlatformProperties.h:92
static constexpr UE_FORCEINLINE_HINT bool IsServerOnly()
Definition MacPlatformProperties.h:42
static constexpr UE_FORCEINLINE_HINT const char * IniPlatformName()
Definition MacPlatformProperties.h:27
static constexpr UE_FORCEINLINE_HINT bool IsClientOnly()
Definition MacPlatformProperties.h:47