question

rasto61 avatar image
rasto61 asked

CRITICAL! Don't Update PlayfabEditorPrefsSO when in editor and playing

Since updating to the latest SDK entering playmode generates this stack:

UnityEditor.AssetDatabase:SaveAssets()
PlayFab.PfEditor.PlayFabEditorPrefsSO:Save() (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorPrefsSO.cs:48)
PlayFab.PfEditor.PlayFabEditorDataService:<RefreshStudiosList>m__0(GetStudiosResult) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:205)
PlayFab.PfEditor.PlayFabEditorHttp:OnWwwSuccess(String, Action`1, Action`1, String) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:124)
PlayFab.PfEditor.<MakeApiCall>c__AnonStorey3`2:<>m__0(String) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:99)
PlayFab.PfEditor.<Post>c__Iterator0:MoveNext() (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:213)
PlayFab.PfEditor.EditorCoroutine:Update() (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/EditorCoroutine.cs:103)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

which results in SaveAssets.

VRTK disables its VR loaded setup on Asset Refresh so disables the Loaded Setup we intend to start with in the editor. Please add an option to skip whatever you are refreshing. This has started to happen after I updated to the latest SDK.

5 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rasto61 avatar image rasto61 commented ·

Happens when the EditorExtensions window is open (and tabbed). Previously when the window was open but tabbed, this did not seem to happen.

Just skip saving the SO when the application is playing.

0 Likes 0 ·
Sarah Zhang avatar image Sarah Zhang rasto61 commented ·

Could you please provide more details about the issue, like possible reproduce steps? Thanks.

0 Likes 0 ·
rasto61 avatar image rasto61 Sarah Zhang commented ·

Just open the editor extensions window and enter play mode. This causes the assets to save. This shouldn't be happening when entering play mode.

0 Likes 0 ·
Show more comments

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.