Files
SimUL/Assets/Ready Player Me/Core/Runtime/WebView/WebViewEvents.cs
T
2024-11-22 07:08:52 +02:00

26 lines
797 B
C#

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";
}
}