Skip to content

Commit 4885570

Browse files
committed
ci: asset loading
1 parent 3be87d1 commit 4885570

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Assets/Editor/BuildCommand.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ public class BuildCommand
1111

1212
public static void BuildAndroid()
1313
{
14+
var config = AssetDatabase.LoadAssetAtPath<OVRProjectConfig>("Assets/Oculus/OculusProjectConfig.asset");
15+
if (config == null)
16+
{
17+
Debug.LogWarning("Failed to load OVRProjectConfig.asset. Build might fail.");
18+
}
19+
else
20+
{
21+
Debug.Log("OVRProjectConfig.asset loaded successfully.");
22+
}
23+
1424
var buildOptions = new BuildPlayerOptions
1525
{
1626
scenes = GetScenes(),

0 commit comments

Comments
 (0)