https://metaplay.io logo
Cannot Initialize Project
# questions-and-feedback
a
Hi, I am having problems with initialization in unity. I have added SDK using Package Manager but when I am trying to initialize via Metaplay -> Initialize Project, I am getting this error : "InvalidOperationException: Expecting a relative path to Metaplay SDK (should start with 'file:../'), got 'file:{patho-to-sdk}/metaplay-demo/metaplay-sdk-release-28.0/MetaplaySDK/Client' ". I tried to recreate project somewhere else and some other drive, but I am still getting same error. My unity version is 2022.3.34f1. How can i resolve this issue, thanks in advance 🙂
j
Hi, Thanks for switching to Discord. A quick guess is that the MetaplaySDK folder might not be in the root folder of your Unity project, this folder contains both the Unity package and other essential libraries for the backend. Please try to move it to the root folder of your Unity project before adding it as a package.
e.g. the folder structure that we recommend is:
Copy code
/Assets
/MetaplaySDK
/Packages
/ProjectSettings
a
Hi @Jurjen, Thanks for the fast response. My MetaplaySDK folder is not in the root folder of my Unity project. I will try your solution and get back to you as soon as possible.
@Jurjen Your solution worked. Thanks! 🙂