Skip to content

Commit e470d3b

Browse files
committed
Don't new a ScriptableObject
1 parent 01d267d commit e470d3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/MRTK/Tests/EditModeTests/Tools/MigrationToolTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void ButtonMigrationTest()
7979
quadRenderer.sharedMaterial = testMat;
8080

8181
ButtonConfigHelper buttonConfig = buttonGameObject.GetComponent<ButtonConfigHelper>();
82-
ButtonIconSet testIconSet = new ButtonIconSet();
82+
ButtonIconSet testIconSet = ScriptableObject.CreateInstance<ButtonIconSet>();
8383
buttonConfig.IconStyle = ButtonIconStyle.Quad;
8484
buttonConfig.IconSet = testIconSet;
8585
buttonConfig.EditorSetDefaultIconSet(testIconSet);

0 commit comments

Comments
 (0)