question

garnezw0 avatar image
garnezw0 asked

I'm getting an error when I try to update the SDK in Unity. What am I doing wrong?

The SDK installed fine. SKD 2.116.211012 is installed. When I click the Upgrade to 2.120.211209 button I get the following error:

Saving 378268 bytes to: D:/Unity Hub/Projects/ChemApp/Assets/PlayFabEditorExtensions/Editor/Resources/MostRecentPackage.unitypackage UnityEngine.Debug:Log (object) PlayFab.PfEditor.PlayFabEditorHttp:WriteResultFile (string,System.Action`1<string>,byte[]) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:41) PlayFab.PfEditor.PlayFabEditorHttp/<>c__DisplayClass0_0:<MakeDownloadCall>b__0 (byte[]) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:19) PlayFab.PfEditor.PlayFabEditorHttp/<PostDownload>d__8:MoveNext () (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:197) PlayFab.PfEditor.EditorCoroutine:Update () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/EditorCoroutine.cs:103) UnityEditor.EditorApplication:Internal_CallUpdateFunctions () PlayFab SDK Install: Complete UnityEngine.Debug:Log (object) PlayFab.PfEditor.PlayFabEditorSDKTools/<>c:<ImportLatestSDK>b__14_0 (string) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:220) PlayFab.PfEditor.PlayFabEditorHttp:WriteResultFile (string,System.Action`1<string>,byte[]) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:45) PlayFab.PfEditor.PlayFabEditorHttp/<>c__DisplayClass0_0:<MakeDownloadCall>b__0 (byte[]) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:19) PlayFab.PfEditor.PlayFabEditorHttp/<PostDownload>d__8:MoveNext () (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:197) PlayFab.PfEditor.EditorCoroutine:Update () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/EditorCoroutine.cs:103) UnityEditor.EditorApplication:Internal_CallUpdateFunctions () A meta data file (.meta) exists but its folder 'Assets/PlayFabSDK' can't be found, and has been created. Empty directories cannot be stored in version control, so it's assumed that the meta data file is for an empty directory in version control. When moving or deleting folders outside of Unity, please ensure that the corresponding .meta file is moved or deleted along with it. UnityEditor.AssetDatabase:Refresh () PlayFab.PfEditor.PlayFabEditorSDKTools/<>c:<ImportLatestSDK>b__14_0 (string) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:224) PlayFab.PfEditor.PlayFabEditorHttp:WriteResultFile (string,System.Action`1<string>,byte[]) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:45) PlayFab.PfEditor.PlayFabEditorHttp/<>c__DisplayClass0_0:<MakeDownloadCall>b__0 (byte[]) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:19) PlayFab.PfEditor.PlayFabEditorHttp/<PostDownload>d__8:MoveNext () (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:197) PlayFab.PfEditor.EditorCoroutine:Update () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/EditorCoroutine.cs:103) UnityEditor.EditorApplication:Internal_CallUpdateFunctions () The number of PlayFabSharedSettings objects should be 1: 0 UnityEngine.Debug:LogWarning (object) PlayFab.PlayFabSettings:GetSharedSettingsObjectPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:57) System.Reflection.MethodBase:Invoke (object,object[]) PlayFab.PfEditor.PlayFabEditorDataService:UpdateScriptableObject () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:143) PlayFab.PfEditor.PlayFabEditorDataService:SaveEnvDetails (bool) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:109) PlayFab.PfEditor.PlayFabEditorSDKTools/<>c:<ImportLatestSDK>b__14_0 (string) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:227) PlayFab.PfEditor.PlayFabEditorHttp:WriteResultFile (string,System.Action`1<string>,byte[]) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:45) PlayFab.PfEditor.PlayFabEditorHttp/<>c__DisplayClass0_0:<MakeDownloadCall>b__0 (byte[]) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:19) PlayFab.PfEditor.PlayFabEditorHttp/<PostDownload>d__8:MoveNext () (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:197) PlayFab.PfEditor.EditorCoroutine:Update () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/EditorCoroutine.cs:103) UnityEditor.EditorApplication:Internal_CallUpdateFunctions () If you are upgrading your SDK, you can ignore this warning as PlayFabSharedSettings will be imported soon. If you are not upgrading your SDK and you see this message, you should re-download the latest PlayFab source code. UnityEngine.Debug:LogWarning (object) PlayFab.PlayFabSettings:GetSharedSettingsObjectPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:58) System.Reflection.MethodBase:Invoke (object,object[]) PlayFab.PfEditor.PlayFabEditorDataService:UpdateScriptableObject () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:143) PlayFab.PfEditor.PlayFabEditorDataService:SaveEnvDetails (bool) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:109) PlayFab.PfEditor.PlayFabEditorSDKTools/<>c:<ImportLatestSDK>b__14_0 (string) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:227) PlayFab.PfEditor.PlayFabEditorHttp:WriteResultFile (string,System.Action`1<string>,byte[]) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:45) PlayFab.PfEditor.PlayFabEditorHttp/<>c__DisplayClass0_0:<MakeDownloadCall>b__0 (byte[]) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:19) PlayFab.PfEditor.PlayFabEditorHttp/<PostDownload>d__8:MoveNext () (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:197) PlayFab.PfEditor.EditorCoroutine:Update () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/EditorCoroutine.cs:103) UnityEditor.EditorApplication:Internal_CallUpdateFunctions () IndexOutOfRangeException: Index was outside the bounds of the array. PlayFab.PlayFabSettings.GetSharedSettingsObjectPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:60) System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <695d1cc93cca45069c528c15c9fdd749>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <695d1cc93cca45069c528c15c9fdd749>:0) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <695d1cc93cca45069c528c15c9fdd749>:0) PlayFab.PfEditor.PlayFabEditorDataService.UpdateScriptableObject () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:143) PlayFab.PfEditor.PlayFabEditorDataService.SaveEnvDetails (System.Boolean updateToScriptableObj) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:109) PlayFab.PfEditor.PlayFabEditorSDKTools+<>c.<ImportLatestSDK>b__14_0 (System.String fileName) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:227) PlayFab.PfEditor.PlayFabEditorHttp.WriteResultFile (System.String url, System.Action`1[T] resultCallback, System.Byte[] response) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:45) PlayFab.PfEditor.PlayFabEditorHttp+<>c__DisplayClass0_0.<MakeDownloadCall>b__0 (System.Byte[] response) (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:19) PlayFab.PfEditor.PlayFabEditorHttp+<PostDownload>d__8.MoveNext () (at Assets/PlayFabEditorExtensions/Editor/Scripts/PlayFabEditorSDK/PlayFabEditorHttp.cs:197) PlayFab.PfEditor.EditorCoroutine.Update () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/EditorCoroutine.cs:103) UnityEngine.Debug:LogException(Exception) PlayFab.PfEditor.EditorCoroutine:Update() (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/EditorCoroutine.cs:140) UnityEditor.EditorApplication:Internal_CallUpdateFunctions() The number of PlayFabSharedSettings objects should be 1: 0 UnityEngine.Debug:LogWarning (object) PlayFab.PlayFabSettings:GetSharedSettingsObjectPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:57) PlayFab.PlayFabSettings:get_PlayFabSharedPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:35) PlayFab.PlayFabSettings/<>c:<.cctor>b__0_0 () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:40) PlayFab.PlayFabSettingsRedirect:get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabApiSettings.cs:66) PlayFab.PlayFabSettings:get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:86) System.Reflection.MonoProperty:GetValue (object,object[]) PlayFab.PfEditor.PlayFabEditorDataService/PlayFab_SharedSettingsProxy:Get<string> (string) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:55) PlayFab.PfEditor.PlayFabEditorDataService/PlayFab_SharedSettingsProxy:get_TitleId () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:19) PlayFab.PfEditor.PlayFabEditorSDKTools:ShowSdkInstalledMenu () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:163) PlayFab.PfEditor.PlayFabEditorSDKTools:DrawSdkPanel () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:42) PlayFab.PfEditor.PlayFabEditor:OnGuiInternal () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:125) PlayFab.PfEditor.PlayFabEditor:HideRepaintErrors (System.Action) (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:172) PlayFab.PfEditor.PlayFabEditor:OnGUI () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:104) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) If you are upgrading your SDK, you can ignore this warning as PlayFabSharedSettings will be imported soon. If you are not upgrading your SDK and you see this message, you should re-download the latest PlayFab source code. UnityEngine.Debug:LogWarning (object) PlayFab.PlayFabSettings:GetSharedSettingsObjectPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:58) PlayFab.PlayFabSettings:get_PlayFabSharedPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:35) PlayFab.PlayFabSettings/<>c:<.cctor>b__0_0 () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:40) PlayFab.PlayFabSettingsRedirect:get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabApiSettings.cs:66) PlayFab.PlayFabSettings:get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:86) System.Reflection.MonoProperty:GetValue (object,object[]) PlayFab.PfEditor.PlayFabEditorDataService/PlayFab_SharedSettingsProxy:Get<string> (string) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:55) PlayFab.PfEditor.PlayFabEditorDataService/PlayFab_SharedSettingsProxy:get_TitleId () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:19) PlayFab.PfEditor.PlayFabEditorSDKTools:ShowSdkInstalledMenu () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:163) PlayFab.PfEditor.PlayFabEditorSDKTools:DrawSdkPanel () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:42) PlayFab.PfEditor.PlayFabEditor:OnGuiInternal () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:125) PlayFab.PfEditor.PlayFabEditor:HideRepaintErrors (System.Action) (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:172) PlayFab.PfEditor.PlayFabEditor:OnGUI () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:104) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) IndexOutOfRangeException: Index was outside the bounds of the array. PlayFab.PlayFabSettings.GetSharedSettingsObjectPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:60) PlayFab.PlayFabSettings.get_PlayFabSharedPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:35) PlayFab.PlayFabSettings+<>c.<.cctor>b__0_0 () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:40) PlayFab.PlayFabSettingsRedirect.get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabApiSettings.cs:66) PlayFab.PlayFabSettings.get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:86) System.Reflection.MonoProperty.StaticGetterAdapterFrame[R] (System.Reflection.MonoProperty+StaticGetter`1[R] getter, System.Object obj) (at <695d1cc93cca45069c528c15c9fdd749>:0) System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) (at <695d1cc93cca45069c528c15c9fdd749>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) (at <695d1cc93cca45069c528c15c9fdd749>:0) PlayFab.PfEditor.PlayFabEditorDataService+PlayFab_SharedSettingsProxy.Get[T] (System.String name) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:55) PlayFab.PfEditor.PlayFabEditorDataService+PlayFab_SharedSettingsProxy.get_TitleId () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:19) PlayFab.PfEditor.PlayFabEditorSDKTools.ShowSdkInstalledMenu () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:163) PlayFab.PfEditor.PlayFabEditorSDKTools.DrawSdkPanel () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:42) PlayFab.PfEditor.PlayFabEditor.OnGuiInternal () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:125) PlayFab.PfEditor.PlayFabEditor.HideRepaintErrors (System.Action action) (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:177) PlayFab.PfEditor.PlayFabEditor.OnGUI () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:104) UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <7ac35247888b44f4a7e290f1f6bb33f3>:0) UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <7ac35247888b44f4a7e290f1f6bb33f3>:0) UnityEditor.DockArea.OldOnGUI () (at <7ac35247888b44f4a7e290f1f6bb33f3>:0) UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) The number of PlayFabSharedSettings objects should be 1: 0 UnityEngine.Debug:LogWarning (object) PlayFab.PlayFabSettings:GetSharedSettingsObjectPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:57) PlayFab.PlayFabSettings:get_PlayFabSharedPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:35) PlayFab.PlayFabSettings/<>c:<.cctor>b__0_0 () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:40) PlayFab.PlayFabSettingsRedirect:get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabApiSettings.cs:66) PlayFab.PlayFabSettings:get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:86) System.Reflection.MonoProperty:GetValue (object,object[]) PlayFab.PfEditor.PlayFabEditorDataService/PlayFab_SharedSettingsProxy:Get<string> (string) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:55) PlayFab.PfEditor.PlayFabEditorDataService/PlayFab_SharedSettingsProxy:get_TitleId () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:19) PlayFab.PfEditor.PlayFabEditorSDKTools:ShowSdkInstalledMenu () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:163) PlayFab.PfEditor.PlayFabEditorSDKTools:DrawSdkPanel () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:42) PlayFab.PfEditor.PlayFabEditor:OnGuiInternal () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:125) PlayFab.PfEditor.PlayFabEditor:HideRepaintErrors (System.Action) (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:172) PlayFab.PfEditor.PlayFabEditor:OnGUI () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:104) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) If you are upgrading your SDK, you can ignore this warning as PlayFabSharedSettings will be imported soon. If you are not upgrading your SDK and you see this message, you should re-download the latest PlayFab source code. UnityEngine.Debug:LogWarning (object) PlayFab.PlayFabSettings:GetSharedSettingsObjectPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:58) PlayFab.PlayFabSettings:get_PlayFabSharedPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:35) PlayFab.PlayFabSettings/<>c:<.cctor>b__0_0 () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:40) PlayFab.PlayFabSettingsRedirect:get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabApiSettings.cs:66) PlayFab.PlayFabSettings:get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:86) System.Reflection.MonoProperty:GetValue (object,object[]) PlayFab.PfEditor.PlayFabEditorDataService/PlayFab_SharedSettingsProxy:Get<string> (string) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:55) PlayFab.PfEditor.PlayFabEditorDataService/PlayFab_SharedSettingsProxy:get_TitleId () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:19) PlayFab.PfEditor.PlayFabEditorSDKTools:ShowSdkInstalledMenu () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:163) PlayFab.PfEditor.PlayFabEditorSDKTools:DrawSdkPanel () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:42) PlayFab.PfEditor.PlayFabEditor:OnGuiInternal () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:125) PlayFab.PfEditor.PlayFabEditor:HideRepaintErrors (System.Action) (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:172) PlayFab.PfEditor.PlayFabEditor:OnGUI () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:104) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) IndexOutOfRangeException: Index was outside the bounds of the array. PlayFab.PlayFabSettings.GetSharedSettingsObjectPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:60) PlayFab.PlayFabSettings.get_PlayFabSharedPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:35) PlayFab.PlayFabSettings+<>c.<.cctor>b__0_0 () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:40) PlayFab.PlayFabSettingsRedirect.get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabApiSettings.cs:66) PlayFab.PlayFabSettings.get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:86) System.Reflection.MonoProperty.StaticGetterAdapterFrame[R] (System.Reflection.MonoProperty+StaticGetter`1[R] getter, System.Object obj) (at <695d1cc93cca45069c528c15c9fdd749>:0) System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) (at <695d1cc93cca45069c528c15c9fdd749>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) (at <695d1cc93cca45069c528c15c9fdd749>:0) PlayFab.PfEditor.PlayFabEditorDataService+PlayFab_SharedSettingsProxy.Get[T] (System.String name) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:55) PlayFab.PfEditor.PlayFabEditorDataService+PlayFab_SharedSettingsProxy.get_TitleId () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:19) PlayFab.PfEditor.PlayFabEditorSDKTools.ShowSdkInstalledMenu () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:163) PlayFab.PfEditor.PlayFabEditorSDKTools.DrawSdkPanel () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:42) PlayFab.PfEditor.PlayFabEditor.OnGuiInternal () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:125) PlayFab.PfEditor.PlayFabEditor.HideRepaintErrors (System.Action action) (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:177) PlayFab.PfEditor.PlayFabEditor.OnGUI () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:104) UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <7ac35247888b44f4a7e290f1f6bb33f3>:0) UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <7ac35247888b44f4a7e290f1f6bb33f3>:0) UnityEditor.DockArea.OldOnGUI () (at <7ac35247888b44f4a7e290f1f6bb33f3>:0) UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) Rethrow as ImmediateModeException UnityEngine.UIElements.UIR.RenderChain.Render () (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.Panel.UpdateForRepaint () (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <3daff4fe4f0b4833be3dfb2f95e3414a>:0) Assets\PlayFabSDK\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs(87,21): warning CS0618: 'UnityWebRequest.isNetworkError' is obsolete: 'UnityWebRequest.isNetworkError is deprecated. Use (UnityWebRequest.result == UnityWebRequest.Result.ConnectionError) instead.' Assets\PlayFabSDK\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs(87,47): warning CS0618: 'UnityWebRequest.isHttpError' is obsolete: 'UnityWebRequest.isHttpError is deprecated. Use (UnityWebRequest.result == UnityWebRequest.Result.ProtocolError) instead.' Assets\PlayFabEditorExtensions\Editor\Scripts\PlayFabEditorSDK\PlayFabEditorHttp.cs(194,57): warning CS0618: 'UnityWebRequest.isHttpError' is obsolete: 'UnityWebRequest.isHttpError is deprecated. Use (UnityWebRequest.result == UnityWebRequest.Result.ProtocolError) instead.'

unity3d
10 |1200

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

Seth Du avatar image
Seth Du answered

I also see these errors when upgrading SDK in my test project. However, after I cleared the logs and ran the project again, there weren't any issues. May I ask is it a blocking issue? In addition, you may delete "PlayFabSDK" folder in your project and re-import the latest 2.120 version from the release page.

4 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.

garnezw0 avatar image garnezw0 commented ·

After I rebooted it seemed to allow me to run things but there is still an error with the 'UnityWebRequest.isHttpError is deprecated. However it seems we may be ok.

As for are the PlayFabSDK I have deleted the folder and imported the new info from:


and yet Unity still says:

Sooooo yea....

0 Likes 0 ·
garnezw0 avatar image garnezw0 commented ·

Well those snippets didn't add once I submitted. So the SDK that I downloaded was:

UnitySDK-2.120.211209

but Unity still says:

SDK 2.116.211012 is installed with the upgrade button to UnitySDK-2.120.211209 which I just put in the folder...

0 Likes 0 ·
garnezw0 avatar image garnezw0 commented ·

Actually, scratch that. The main issue that led me to finding these issues still persists.

using PlayFab.ClientModels;

Says: The type or namespace name 'ClientModels' does not exist in the namespace 'PlayFab'

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ garnezw0 commented ·

Please ignore the upgrade button being enabled even after you have imported the latest version. This is a known issue due to the redirect url not being up to date.

>>The type or namespace name 'ClientModels' does not exist in the namespace 'PlayFab'

This is a common assemble issue of Unity with external IDE, please navigate to [Unity] -> [Edit] -> [Preference] -> [External Tools] -> [External Script Editor]. If you have already selected a tool, try to switch to another one then switch back.

0 Likes 0 ·
garnezw0 avatar image
garnezw0 answered

As an additional note, I have looked through other error posts and followed solution options including:

uninstalling and following the installation process on (https://github.com/PlayFab/UnitySDK)

and

attempting to install the package on a clean project.

Both yield the same results:

Here are the errors from the clean project:

IndexOutOfRangeException: Index was outside the bounds of the array. PlayFab.PlayFabSettings.GetSharedSettingsObjectPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:60) PlayFab.PlayFabSettings.get_PlayFabSharedPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:35) PlayFab.PlayFabSettings+<>c.<.cctor>b__0_0 () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:40) PlayFab.PlayFabSettingsRedirect.get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabApiSettings.cs:66) PlayFab.PlayFabSettings.get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:86) System.Reflection.MonoProperty.StaticGetterAdapterFrame[R] (System.Reflection.MonoProperty+StaticGetter`1[R] getter, System.Object obj) (at <695d1cc93cca45069c528c15c9fdd749>:0) System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) (at <695d1cc93cca45069c528c15c9fdd749>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) (at <695d1cc93cca45069c528c15c9fdd749>:0) PlayFab.PfEditor.PlayFabEditorDataService+PlayFab_SharedSettingsProxy.Get[T] (System.String name) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:55) PlayFab.PfEditor.PlayFabEditorDataService+PlayFab_SharedSettingsProxy.get_TitleId () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:19) PlayFab.PfEditor.PlayFabEditorSDKTools.ShowSdkInstalledMenu () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:163) PlayFab.PfEditor.PlayFabEditorSDKTools.DrawSdkPanel () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:42) PlayFab.PfEditor.PlayFabEditor.OnGuiInternal () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:125) PlayFab.PfEditor.PlayFabEditor.HideRepaintErrors (System.Action action) (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:177) PlayFab.PfEditor.PlayFabEditor.OnGUI () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:104) UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <7ac35247888b44f4a7e290f1f6bb33f3>:0) UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <7ac35247888b44f4a7e290f1f6bb33f3>:0) UnityEditor.DockArea.OldOnGUI () (at <7ac35247888b44f4a7e290f1f6bb33f3>:0) UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) IndexOutOfRangeException: Index was outside the bounds of the array. PlayFab.PlayFabSettings.GetSharedSettingsObjectPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:60) PlayFab.PlayFabSettings.get_PlayFabSharedPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:35) PlayFab.PlayFabSettings+<>c.<.cctor>b__0_0 () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:40) PlayFab.PlayFabSettingsRedirect.get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabApiSettings.cs:66) PlayFab.PlayFabSettings.get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:86) System.Reflection.MonoProperty.StaticGetterAdapterFrame[R] (System.Reflection.MonoProperty+StaticGetter`1[R] getter, System.Object obj) (at <695d1cc93cca45069c528c15c9fdd749>:0) System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) (at <695d1cc93cca45069c528c15c9fdd749>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) (at <695d1cc93cca45069c528c15c9fdd749>:0) PlayFab.PfEditor.PlayFabEditorDataService+PlayFab_SharedSettingsProxy.Get[T] (System.String name) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:55) PlayFab.PfEditor.PlayFabEditorDataService+PlayFab_SharedSettingsProxy.get_TitleId () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:19) PlayFab.PfEditor.PlayFabEditorSDKTools.ShowSdkInstalledMenu () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:163) PlayFab.PfEditor.PlayFabEditorSDKTools.DrawSdkPanel () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:42) PlayFab.PfEditor.PlayFabEditor.OnGuiInternal () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:125) PlayFab.PfEditor.PlayFabEditor.HideRepaintErrors (System.Action action) (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:177) PlayFab.PfEditor.PlayFabEditor.OnGUI () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:104) UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <7ac35247888b44f4a7e290f1f6bb33f3>:0) UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <7ac35247888b44f4a7e290f1f6bb33f3>:0) UnityEditor.DockArea.OldOnGUI () (at <7ac35247888b44f4a7e290f1f6bb33f3>:0) UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) Rethrow as ImmediateModeException UnityEngine.UIElements.UIR.RenderChain.Render () (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.Panel.UpdateForRepaint () (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <fc2718cc4daa4b4594bbc4096172ae90>:0) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <3daff4fe4f0b4833be3dfb2f95e3414a>:0) Assets\PlayFabSDK\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs(87,21): warning CS0618: 'UnityWebRequest.isNetworkError' is obsolete: 'UnityWebRequest.isNetworkError is deprecated. Use (UnityWebRequest.result == UnityWebRequest.Result.ConnectionError) instead.' Assets\PlayFabSDK\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs(87,47): warning CS0618: 'UnityWebRequest.isHttpError' is obsolete: 'UnityWebRequest.isHttpError is deprecated. Use (UnityWebRequest.result == UnityWebRequest.Result.ProtocolError) instead.' Assets\PlayFabEditorExtensions\Editor\Scripts\PlayFabEditorSDK\PlayFabEditorHttp.cs(194,57): warning CS0618: 'UnityWebRequest.isHttpError' is obsolete: 'UnityWebRequest.isHttpError is deprecated. Use (UnityWebRequest.result == UnityWebRequest.Result.ProtocolError) instead.'

10 |1200

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

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.