Skip to content

Commit

Permalink
Fixed migration code not running unless the scene was changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordo authored and Jordo committed Feb 22, 2024
1 parent 513fa30 commit 90872f1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vrchat.jordo.easyquestswitch/Runtime/EQS_Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void OnChangedBuildTarget(BuildTarget newTarget)
buildInfo.CachedBuildTarget = buildInfo.NewBuildTarget;
}

public void OnSceneOpened()
public void Awake()
{
if (currentVersion > version)
{
Expand All @@ -129,6 +129,10 @@ public void OnSceneOpened()
}
version = currentVersion;
}
}

public void OnSceneOpened()
{
/*buildInfo.NewBuildTarget = EditorUserBuildSettings.activeBuildTarget;
if (buildInfo.CachedBuildTarget != buildInfo.NewBuildTarget && Objects != null)
{
Expand All @@ -140,7 +144,7 @@ public void OnSceneOpened()
}
}*/
}

public void ApplyTarget(BuildTarget newTarget)
{
if(newTarget == BuildTarget.StandaloneWindows64 || newTarget == BuildTarget.Android)
Expand Down

0 comments on commit 90872f1

Please sign in to comment.