Skip to content

Commit 0c58ff5

Browse files
committed
fix: add missing preprocessor directives to addressable code
1 parent dce7bb1 commit 0c58ff5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Packages/com.mygamedevtools.scene-loader/Tests/Runtime/StaticSceneManager_ExtensionTests.cs

+4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
using System.Collections;
22
using System.Threading.Tasks;
33
using NUnit.Framework;
4+
#if ENABLE_ADDRESSABLES
45
using UnityEngine.AddressableAssets;
56
using UnityEngine.ResourceManagement.AsyncOperations;
7+
#endif
68
using UnityEngine.TestTools;
79

810
namespace MyGameDevTools.SceneLoading.Tests
@@ -11,6 +13,7 @@ public partial class StaticSceneManager_Tests
1113
{
1214
int[] _buildIndexes = new[] { 1, 2, 3 };
1315

16+
#if ENABLE_ADDRESSABLES
1417
AssetReference[] _assetReferences;
1518

1619
[OneTimeSetUp]
@@ -24,6 +27,7 @@ public void AssetReferenceSetup()
2427

2528
Addressables.Release(operationHandle);
2629
}
30+
#endif
2731

2832
[UnityTest]
2933
public IEnumerator Load_Extension_ByIndex()

0 commit comments

Comments
 (0)