UI 자동화를 위해 바인딩 기능 구현
- 유니티 에셋 인증 오류로 meta 재생성
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
#if UNITY_EDITOR
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace UnityEngine.InputSystem.Editor
|
||||
{
|
||||
internal static class EnumerableExtensions
|
||||
{
|
||||
public static void ForEach<T>(this IEnumerable<T> enumerable, Action<T, int> action)
|
||||
{
|
||||
int index = 0;
|
||||
foreach (var item in enumerable)
|
||||
action(item, index++);
|
||||
}
|
||||
|
||||
public static string Join<T>(this IEnumerable<T> enumerable, string separator)
|
||||
{
|
||||
return string.Join(separator, enumerable);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user