UI 자동화를 위해 바인딩 기능 구현
- 유니티 에셋 인증 오류로 meta 재생성
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
#if UNITY_EDITOR
|
||||
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.InputSystem.Editor
|
||||
{
|
||||
internal static class InputEditorAnalytics
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents notification behavior setting associated with <see cref="PlayerInput"/> and
|
||||
/// <see cref="PlayerInputManager"/>.
|
||||
/// </summary>
|
||||
internal enum PlayerNotificationBehavior
|
||||
{
|
||||
SendMessages = 0,
|
||||
BroadcastMessages = 1,
|
||||
UnityEvents = 2,
|
||||
CSharpEvents = 3
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts from current <see cref="PlayerNotifications"/> type to analytics counterpart.
|
||||
/// </summary>
|
||||
/// <param name="value">The value to be converted.</param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="ArgumentOutOfRangeException">If there is no available remapping.</exception>
|
||||
internal static PlayerNotificationBehavior ToNotificationBehavior(PlayerNotifications value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case PlayerNotifications.SendMessages:
|
||||
return PlayerNotificationBehavior.SendMessages;
|
||||
case PlayerNotifications.BroadcastMessages:
|
||||
return PlayerNotificationBehavior.BroadcastMessages;
|
||||
case PlayerNotifications.InvokeUnityEvents:
|
||||
return PlayerNotificationBehavior.UnityEvents;
|
||||
case PlayerNotifications.InvokeCSharpEvents:
|
||||
return PlayerNotificationBehavior.CSharpEvents;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException(nameof(value));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user