Here are the Easy Steps to Integrate Unity SDK with Xternity:
Begin by creating your project on the Xternity platform.
Once you've set it up, copy the code for your project. This project code will play a crucial role in establishing the connection between your Unity project and the Xternity ecosystem.
Launch a fresh Unity Project or an existing one to start working with the SDK. Unity Hub and open your project within the workspace. Familiarize yourself with the structure and layout, ensuring you're ready to implement the blockchain integration seamlessly.
Locate the Unity SDK within your project's assets and open the User data section. This is where you'll configure the necessary parameters to establish the connection between your project and the Xternity blockchain.Follow these steps:
- Navigate to the Window > Package Manager
- Click the small plus sign at the top left of the Package Manager Window
- Paste the link to the package: https://github.com/XternityGames/UnitySDK.git .The package will now install itself into your project.
Open the Demo scene provided by the Samples of the package. Navigate to the scene’s hierarchy and select the SDKTester object. The SDK tester object has a component strictly designated to connect you Unity Project to the Xternity Platform. Set the first parameter in the User data section to match the unique identifier of your project. Replace the existing code in this component section with the code you previously copied from the Xternity console. By doing so, you establish a direct link between your Unity project and the blockchain network.
Congratulations! You've successfully implemented blockchain integration into your Unity project using the Xternity platform. Brace yourself for a new level of interaction and engagement as your users witness their contributions come to life on the blockchain.
Updated 5 months ago