Skip to content

Commit f83639f

Browse files
committed
more build preprocessor fixes
1 parent 7f36cd2 commit f83639f

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed

Assets/UXF/Examples/4_CorsiBlock/CorsiBlockExample.unity

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2152,6 +2152,36 @@ PrefabInstance:
21522152
propertyPath: m_IsActive
21532153
value: 0
21542154
objectReference: {fileID: 0}
2155+
- target: {fileID: 2897568975779925144, guid: 0a3b6392f04558844bd340e68ced1ff9,
2156+
type: 3}
2157+
propertyPath: m_AnchorMin.y
2158+
value: 1
2159+
objectReference: {fileID: 0}
2160+
- target: {fileID: 2897568975779925144, guid: 0a3b6392f04558844bd340e68ced1ff9,
2161+
type: 3}
2162+
propertyPath: m_AnchorMax.y
2163+
value: 1
2164+
objectReference: {fileID: 0}
2165+
- target: {fileID: 2897568975779925144, guid: 0a3b6392f04558844bd340e68ced1ff9,
2166+
type: 3}
2167+
propertyPath: m_AnchoredPosition.x
2168+
value: 128
2169+
objectReference: {fileID: 0}
2170+
- target: {fileID: 2897568975779925144, guid: 0a3b6392f04558844bd340e68ced1ff9,
2171+
type: 3}
2172+
propertyPath: m_AnchoredPosition.y
2173+
value: -10
2174+
objectReference: {fileID: 0}
2175+
- target: {fileID: 2897568975779925144, guid: 0a3b6392f04558844bd340e68ced1ff9,
2176+
type: 3}
2177+
propertyPath: m_SizeDelta.x
2178+
value: 236
2179+
objectReference: {fileID: 0}
2180+
- target: {fileID: 2897568975779925144, guid: 0a3b6392f04558844bd340e68ced1ff9,
2181+
type: 3}
2182+
propertyPath: m_SizeDelta.y
2183+
value: 60
2184+
objectReference: {fileID: 0}
21552185
- target: {fileID: 3110759810348992417, guid: 0a3b6392f04558844bd340e68ced1ff9,
21562186
type: 3}
21572187
propertyPath: m_AnchorMin.y
@@ -2200,7 +2230,7 @@ PrefabInstance:
22002230
- target: {fileID: 4298776666381973480, guid: 0a3b6392f04558844bd340e68ced1ff9,
22012231
type: 3}
22022232
propertyPath: active
2203-
value: 1
2233+
value: 0
22042234
objectReference: {fileID: 0}
22052235
- target: {fileID: 4612929069887686480, guid: 0a3b6392f04558844bd340e68ced1ff9,
22062236
type: 3}

Assets/UXF/Scripts/Etc/Editor/UXFBuildPreprocessor.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void OnProcessScene(Scene scene, BuildReport report)
3535
if (localHandlers.Count() > 0 && !localFileDataHandlerCompatiblePlatforms.Contains(report.summary.platform))
3636
{
3737
CancelBuild(string.Format(
38-
"Cannot build scene {0} for platform '{1}'.\nReason: The Data Handler{2} '{3}' require{4} local file access, which is not compatible with {0}. " +
38+
"Cannot build scene {0} for platform '{1}'.\nReason: The Data Handler{2} '{3}' require{4} local file access, which is not compatible with {1}. " +
3939
"You can deselect Data Handler{2} '{3}' with the check box in the Data Handling tab of the UXF Session Component." +
4040
"Perhaps try one of the other data handlers that are compatible with this build target.",
4141
scene.name,
@@ -45,6 +45,18 @@ public void OnProcessScene(Scene scene, BuildReport report)
4545
localHandlers.Count() == 1 ? "s" : ""
4646
));
4747
}
48+
49+
50+
if (ui.settingsMode == UI.SettingsMode.AcquireFromUI && !localFileDataHandlerCompatiblePlatforms.Contains(report.summary.platform))
51+
{
52+
CancelBuild(string.Format(
53+
"Cannot build scene {0} for platform '{1}'.\nReason: Settings Mode 'Acquire From UI' is not compatible with {1}. This is because " +
54+
"it needs access to the settings profile .json files in the StreamingAssets folder, which is not supported on {1}." +
55+
"You can change the settings mode in the UXF UI configuration.",
56+
scene.name,
57+
report.summary.platform
58+
));
59+
}
4860
}
4961
}
5062

0 commit comments

Comments
 (0)