Set up a project with the Platform Toolkit package
Use the following workflow to set up a project with the Platform Toolkit package.
- Install the Platform Toolkit package
- Install platform modules and packages
- Create a Play Mode Controls Settings asset
- Configure Platform Toolkit Project settings
- Initialize Platform Toolkit
- Additional configuration
Install the Platform Toolkit package
For information on how to access and install the Platform Toolkit package, refer to Install the Platform Toolkit package.
Install platform modules and packages
Install the required platform modules and platform packages for your project. For further information, refer to Install platform modules and packages.
Create a Play Mode Controls Settings asset
A Play Mode Controls Settings asset is required to manage the Play Mode Controls feature. For further information, refer to Create a Play Mode Controls Settings asset.
Configure Platform Toolkit implementation settings
Configure which Platform Toolkit implementation to use for each of your target platforms. There are two ways to do this:
- Build profile overrides: Configure the implementation per build profile so you can maintain multiple configurations without changing your project settings each time. For more information, refer to Configure build profiles for Platform Toolkit.
- Project settings: Use the Platform Toolkit project settings (menu: Edit > Project Settings > Platform Toolkit) to set a global implementation for each platform. A default value is automatically selected for each available platform.
Initialize Platform Toolkit
Use PlatformToolkit.Initialize() to initialize the Platform Toolkit package and access the available services and systems for your target platforms. It's recommended to initialize Platform Toolkit early in the application lifecycle, such as in the initial loading scene.
Additional configuration
There might be additional configuration steps required depending on your project's specific needs.
Configure attributes
Configure attributes to create platform agnostic references to account information. This allows you to access user data consistently across different platforms.
For more information, refer to Get started with attributes
Add achievements
Use the Achievement Editor to add achievements to your project. For further information, refer to Configure achievements with the Achievement Editor.
Configure Play Mode Controls
Configure Play Mode Controls to simulate different user scenarios and ensure that your implementation works as expected. For more information, refer to Create a Play Mode Controls Settings asset.