|
2 | 2 |
|
3 | 3 | The toolkit exposes Meta SDKs (e.g Platform SDK), as well as Meta utilities for XR development with the Godot Engine. |
4 | 4 |
|
5 | | -**Note:** |
6 | | -- Use of the toolkit requires **Godot 4.3** or higher. |
| 5 | +> [!WARNING] |
| 6 | +> |
| 7 | +> Use of the toolkit requires **Godot 4.3** or higher. |
7 | 8 |
|
8 | 9 | ## Build instructions |
9 | 10 |
|
@@ -33,42 +34,16 @@ gradlew.bat buildToolkit |
33 | 34 |
|
34 | 35 | ## Using the Platform SDK |
35 | 36 |
|
36 | | -Before you can use the Platform SDK, you need to: |
37 | | - |
38 | | -1. [Create a developer account](https://developer.oculus.com/sign-up/) for Meta Quest. |
39 | | -2. Create an app within the Meta Quest [Developer Dashboard](https://developer.oculus.com/manage/). |
40 | | -3. Visit the "API" tab within the developer dashboard for your app, and make note of your "App ID" - you'll need this to initialize the Platform SDK. |
41 | | -4. Make a release build of your application, using the real "Unique Name" and release keystore. At this point, your application probably doesn't do much, which is fine. |
42 | | -5. Upload this build using the [Meta Quest Developer Hub](https://developer.oculus.com/meta-quest-developer-hub/) to the ALPHA channel. |
43 | | -6. Complete a [Data Use Checkup](https://developer.oculus.com/resources/publish-data-use/) (DUC), including all the features of the Platform SDK you intend to use. You won't have access to any features you don't include in your DUC. |
44 | | -7. Wait for your DUC to be approved. |
45 | | - |
46 | | -After that process is complete, you'll be able to use the Platform SDK: |
47 | | - |
48 | | -```gdscript |
49 | | -func setup_meta_platform_sdk(): |
50 | | - var result: MetaPlatformSDK_Message |
51 | | -
|
52 | | - # Replace "1234" with your App ID. |
53 | | - result = await MetaPlatformSDK.initialize_platform_async("1234").completed |
54 | | - if result.is_error(): |
55 | | - print("Unable to initialize the platform SDK: ", result.error) |
56 | | - return |
57 | | -
|
58 | | - # Check that the user owns this app and is entitled to use it. |
59 | | - result = await MetaPlatformSDK.entitlement_get_is_viewer_entitled_async().completed |
60 | | - if result.is_error(): |
61 | | - print("The user isn't entitled: ", result.error) |
62 | | - return |
63 | | -
|
64 | | - # Get the list of the user's friends who also own this app. |
65 | | - # NOTE: This will only work if you requested access to "Friends" on your DUC (see earlier instructions). |
66 | | - result = await MetaPlatformSDK.user_get_logged_in_user_friends_async().completed |
67 | | - if result.is_error(): |
68 | | - print("Unable to get friends: ", result.error) |
69 | | - return |
70 | | -
|
71 | | - print("My friends:") |
72 | | - for user in result.data: |
73 | | - print("- ", user) |
74 | | -``` |
| 37 | +See [Getting Started with the Meta Platform SDK](https://godot-sdk-integrations.github.io/godot-meta-toolkit/manual/platform_sdk/getting_started.html) in the official docs. |
| 38 | + |
| 39 | +## Documentation |
| 40 | + |
| 41 | +This README is intentionally kept short. |
| 42 | + |
| 43 | +See the [official documentation](https://godot-sdk-integrations.github.io/godot-meta-toolkit/) for more information. |
| 44 | + |
| 45 | +## Maintenance and Sponsorship |
| 46 | + |
| 47 | +This project is maintained by [W4 Games](https://www.w4games.com/) with sponsorship from [Meta](https://www.meta.com/). |
| 48 | + |
| 49 | +Contributions from the community are welcome! |
0 commit comments