add ready player me POC

This commit is contained in:
2024-11-22 07:08:52 +02:00
parent 855639487b
commit 7c4e48f388
1033 changed files with 224048 additions and 28 deletions
@@ -0,0 +1,25 @@
using System;
using UnityEngine.Events;
namespace ReadyPlayerMe.Core.WebView
{
// Event to call when avatar is created, receives GLB url.
[Serializable] public class WebViewEvent : UnityEvent<string>
{
}
// Event to call when avatar is created, receives GLB url.
[Serializable] public class AssetUnlockEvent : UnityEvent<AssetRecord>
{
}
public static class WebViewEvents
{
public const string AVATAR_EXPORT = "v1.avatar.exported";
public const string USER_SET = "v1.user.set";
public const string USER_AUTHORIZED = "v1.user.authorized";
public const string ASSET_UNLOCK = "v1.asset.unlock";
public const string USER_UPDATED = "v1.user.updated";
public const string USER_LOGOUT = "v1.user.logout";
}
}