question

Lennart avatar image
Lennart asked

I have problems with the unity sdk

Hello. I installed the Playfab Sdk and by installing it i get an error. Then i upgraded it and this error came:

Nr 1:

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.RuntimePropertyInfo.StaticGetterAdapterFrame[R] (System.Reflection.RuntimePropertyInfo+StaticGetter`1[R] getter, System.Object obj) (at <00c558282d074245ab3496e2d108079b>:0) System.Reflection.RuntimePropertyInfo.GetValue (System.Object obj, System.Object[] index) (at <00c558282d074245ab3496e2d108079b>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.RuntimePropertyInfo.GetValue (System.Object obj, System.Object[] index) (at <00c558282d074245ab3496e2d108079b>: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) (at <948074e677924ec29383d02747cdda34>:0) UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <948074e677924ec29383d02747cdda34>:0) UnityEditor.DockArea.OldOnGUI () (at <948074e677924ec29383d02747cdda34>: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 <19e8ae72d69d4534922a221bc32022aa>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Can someone help me? I really want to use Playfab

10 |1200

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

1 Answer

·
Gosen Gao avatar image
Gosen Gao answered

It seems that you are using PlayFabExtensions to install PlayFabSDK. There is a known issue that we have reported to the team, currently, you can check the workaround in this thread -- Cannot update from 2.116 to 2.120 when clicking upgrade button - Playfab Community.

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.