Gravity SDK is a tool for authorizing users who own wearables from Gravity Layer and loading assets into a scene in Unity.
Copy the files from this repository into a separate folder in your Unity project. For instance, into Assets/Plugins/GravityLayer/CoreAsync
.
Alternatively you can download a Unity package file from Releases. To install the package
- Go to “Assets / Import Package / Custom Package”
- Select
gravitylayer-unitysdk-coreasync.unitypackage
- Click “Import”
A single entry point for Gravity SDK is the class GravityLayerEntryPoint
.
You can connect to Gravity API by calling GravityLayerEntryPoint.GLayerConnection.EstablishConnection()
You can fetch user’s wearables by calling GravityLayerEntryPoint.Wardrobe.FetchWearables()
For more details see our documentation.