Skip to content

Commit 3535f90

Browse files
committed
updates for 0.7
1 parent a44ea3c commit 3535f90

10 files changed

Lines changed: 33 additions & 30 deletions

File tree

Basic AssetReference/Assets/Scripts/ListOfReferences.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void Start ()
2323
}
2424
}
2525

26-
void OnShapeLoaded(IAsyncOperation<GameObject> obj)
26+
void OnShapeLoaded(AsyncOperationHandle<GameObject> obj)
2727
{
2828
m_ToLoadCount--;
2929
if (m_ToLoadCount <= 0)

Basic AssetReference/Packages/manifest.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"dependencies": {
3-
"com.unity.addressables": "0.6.7-preview",
4-
"com.unity.ads": "2.0.8",
5-
"com.unity.analytics": "2.0.16",
6-
"com.unity.package-manager-ui": "1.9.11",
3+
"com.unity.addressables": "0.7.1-preview",
4+
"com.unity.ads": "2.3.1",
5+
"com.unity.analytics": "3.2.2",
6+
"com.unity.collab-proxy": "1.2.15",
7+
"com.unity.package-manager-ui": "2.0.3",
78
"com.unity.purchasing": "2.0.3",
8-
"com.unity.textmeshpro": "1.2.4",
9+
"com.unity.textmeshpro": "1.3.0",
910
"com.unity.modules.ai": "1.0.0",
1011
"com.unity.modules.animation": "1.0.0",
1112
"com.unity.modules.assetbundle": "1.0.0",
@@ -36,5 +37,6 @@
3637
"com.unity.modules.vr": "1.0.0",
3738
"com.unity.modules.wind": "1.0.0",
3839
"com.unity.modules.xr": "1.0.0"
39-
}
40+
},
41+
"registry": "https://staging-packages.unity.com"
4042
}

Scene Loading/Assets/AddScenes.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using UnityEngine.AddressableAssets;
55
using UnityEngine.ResourceManagement;
66
using UnityEngine.ResourceManagement.AsyncOperations;
7+
using UnityEngine.ResourceManagement.ResourceProviders;
78
using UnityEngine.SceneManagement;
89
using UnityEngine.Serialization;
910
using UnityEngine.UI;
@@ -13,7 +14,7 @@ public class AddScenes : MonoBehaviour
1314
public string addressToAdd;
1415
Button m_AddButton;
1516
public TMPro.TMP_Text textArea;
16-
Scene m_LoadedScene;
17+
SceneInstance m_LoadedScene;
1718
bool m_ReadyToLoad = true;
1819
// Use this for initialization
1920
void Start () {
@@ -39,21 +40,21 @@ void OnButtonClick()
3940
}
4041
}
4142

42-
void OnSceneUnloaded(IAsyncOperation<Scene> obj)
43+
void OnSceneUnloaded(AsyncOperationHandle<SceneInstance> obj)
4344
{
4445
if (obj.Status == AsyncOperationStatus.Succeeded)
4546
{
4647
textArea.text = "Reload " + addressToAdd;
4748
m_ReadyToLoad = true;
48-
m_LoadedScene = new Scene();
49+
m_LoadedScene = new SceneInstance();
4950
}
5051
else
5152
{
5253
Debug.LogError("Failed to unload scene at address: " + addressToAdd);
5354
}
5455
}
5556

56-
void OnSceneLoaded(IAsyncOperation<Scene> obj)
57+
void OnSceneLoaded(AsyncOperationHandle<SceneInstance> obj)
5758
{
5859
if (obj.Status == AsyncOperationStatus.Succeeded)
5960
{

Scene Loading/Packages/manifest.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"com.unity.addressables": "0.6.7-preview",
3+
"com.unity.addressables": "0.7.0-preview",
44
"com.unity.ads": "2.3.1",
55
"com.unity.analytics": "3.2.2",
66
"com.unity.collab-proxy": "1.2.15",
@@ -37,5 +37,6 @@
3737
"com.unity.modules.vr": "1.0.0",
3838
"com.unity.modules.wind": "1.0.0",
3939
"com.unity.modules.xr": "1.0.0"
40-
}
40+
},
41+
"registry": "https://staging-packages.unity.com"
4142
}

Sprite Land/Assets/Scripts/SpriteControlTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ void Update()
4040
singleEntry = null;
4141
}
4242
}
43-
44-
void SingleDone(IAsyncOperation<Sprite> op)
43+
44+
void SingleDone(AsyncOperationHandle<Sprite> op)
4545
{
4646
if (op.Result == null)
4747
{
@@ -53,7 +53,7 @@ void SingleDone(IAsyncOperation<Sprite> op)
5353
singleEntry = op.Result;
5454
}
5555

56-
void SheetDone(IAsyncOperation<IList<Sprite>> op)
56+
void SheetDone(AsyncOperationHandle<IList<Sprite>> op)
5757
{
5858
if (op.Result == null)
5959
{

Sprite Land/Packages/manifest.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"com.unity.addressables": "0.6.7-preview",
3+
"com.unity.addressables": "0.7.0-preview",
44
"com.unity.ads": "2.3.1",
55
"com.unity.analytics": "3.2.2",
66
"com.unity.collab-proxy": "1.2.15",
@@ -37,5 +37,6 @@
3737
"com.unity.modules.vr": "1.0.0",
3838
"com.unity.modules.wind": "1.0.0",
3939
"com.unity.modules.xr": "1.0.0"
40-
}
40+
},
41+
"registry": "https://staging-packages.unity.com"
4142
}

Texture Variations/Assets/Editor/BuildScriptInherited.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ public override string Name
1919
get { return "Pack Variations"; }
2020
}
2121

22-
protected override TResult BuildDataImplementation<TResult>(IDataBuilderContext context)
22+
protected override TResult BuildDataImplementation<TResult>(AddressablesDataBuilderInput context)
2323
{
2424
var result = base.BuildDataImplementation<TResult>(context);
25-
26-
AddressableAssetSettings settings = context.GetValue<AddressableAssetSettings>(AddressablesBuildDataBuilderContext.BuildScriptContextConstants.kAddressableAssetSettings);
25+
26+
AddressableAssetSettings settings = context.AddressableSettings;
2727
DoCleanup(settings);
2828
return result;
2929
}

Texture Variations/Assets/Editor/BuildScriptInheritedFastMode.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ public override string Name
1919
get { return "Vary Fast"; }
2020
}
2121

22-
protected override TResult BuildDataImplementation<TResult>(IDataBuilderContext context)
22+
protected override TResult BuildDataImplementation<TResult>(AddressablesDataBuilderInput context)
2323
{
2424
var result = base.BuildDataImplementation<TResult>(context);
25-
26-
AddressableAssetSettings settings = context.GetValue<AddressableAssetSettings>(AddressablesBuildDataBuilderContext.BuildScriptContextConstants.kAddressableAssetSettings);
25+
26+
AddressableAssetSettings settings = context.AddressableSettings;
2727
DoCleanup(settings);
2828
return result;
2929
}

Texture Variations/Assets/Editor/BuildScriptInheritedVirtualMode.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ public override string Name
2020
get { return "Virtual Variety"; }
2121
}
2222

23-
protected override TResult BuildDataImplementation<TResult>(IDataBuilderContext context)
23+
protected override TResult BuildDataImplementation<TResult>(AddressablesDataBuilderInput context)
2424
{
2525
var result = base.BuildDataImplementation<TResult>(context);
26-
27-
AddressableAssetSettings settings = context.GetValue<AddressableAssetSettings>(AddressablesBuildDataBuilderContext.BuildScriptContextConstants.kAddressableAssetSettings);
26+
27+
AddressableAssetSettings settings = context.AddressableSettings;
2828
DoCleanup(settings);
2929
return result;
3030
}

Texture Variations/Packages/manifest.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"dependencies": {
3-
"com.unity.addressables": "file:../../../AddressablesDemo_cds/AddressablesDemo/Packages/com.unity.addressables",
4-
"com.unity.scriptablebuildpipeline": "file:../../../AddressablesDemo_cds/AddressablesDemo/Packages/com.unity.scriptablebuildpipeline",
5-
"com.unity.scriptablebuildpipeline.experimental": "file:../../../AddressablesDemo_cds/AddressablesDemo/Packages/com.unity.scriptablebuildpipeline.experimental",
3+
"com.unity.addressables": "0.7.0-preview",
64
"com.unity.ads": "2.3.1",
75
"com.unity.analytics": "3.2.2",
86
"com.unity.collab-proxy": "1.2.15",

0 commit comments

Comments
 (0)