Gameplay Ingredients是一组用于 Unity 游戏的运行时和编辑器工具:一组脚本的集合,可在制作游戏和原型时简化简单的任务。

31 行
778 B

// This class is auto generated
using System;
using System.Collections.Generic;
namespace NaughtyAttributes.Editor
{
public static class __classname__
{
private static Dictionary<Type, NativePropertyDrawer> drawersByAttributeType;
static __classname__()
{
drawersByAttributeType = new Dictionary<Type, NativePropertyDrawer>();
__entries__
}
public static NativePropertyDrawer GetDrawerForAttribute(Type attributeType)
{
NativePropertyDrawer drawer;
if (drawersByAttributeType.TryGetValue(attributeType, out drawer))
{
return drawer;
}
else
{
return null;
}
}
}
}