Skip to content

Commit 6c4597a

Browse files
author
William Armstrong
committed
Update test API usage
Create Prefab was depricated, update tests to use SaveAsPrefabAsset instead
1 parent f3a87e3 commit 6c4597a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/CrossSceneReference/Tests/Editor/GuidReferenceTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public void Setup()
2525
prefabPath = "Assets/TemporaryTestGuid.prefab";
2626

2727
guidBase = CreateNewGuid();
28-
prefab = PrefabUtility.CreatePrefab(prefabPath, guidBase.gameObject);
28+
bool success;
29+
prefab = PrefabUtility.SaveAsPrefabAsset(guidBase.gameObject, prefabPath, out success);
2930

3031
guidPrefab = prefab.GetComponent<GuidComponent>();
3132
}

0 commit comments

Comments
 (0)