mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 08:18:49 -05:00
Add LongDrawer into BuiltinDrawer
This commit is contained in:
parent
8cffc61ebe
commit
149d48243e
@ -5,6 +5,7 @@ using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
[assembly: RegisterTriValueDrawer(typeof(IntegerDrawer), TriDrawerOrder.Fallback)]
|
||||
[assembly: RegisterTriValueDrawer(typeof(LongDrawer), TriDrawerOrder.Fallback)]
|
||||
[assembly: RegisterTriValueDrawer(typeof(BooleanDrawer), TriDrawerOrder.Fallback)]
|
||||
[assembly: RegisterTriValueDrawer(typeof(FloatDrawer), TriDrawerOrder.Fallback)]
|
||||
[assembly: RegisterTriValueDrawer(typeof(StringDrawer), TriDrawerOrder.Fallback)]
|
||||
@ -49,7 +50,13 @@ namespace TriInspector.Drawers
|
||||
return EditorGUI.IntField(position, label, value);
|
||||
}
|
||||
}
|
||||
|
||||
public class LongDrawer : BuiltinDrawerBase<long>
|
||||
{
|
||||
protected override long OnValueGUI(Rect position, GUIContent label, long value)
|
||||
{
|
||||
return EditorGUI.LongField(position, label, value);
|
||||
}
|
||||
}
|
||||
public class FloatDrawer : BuiltinDrawerBase<float>
|
||||
{
|
||||
protected override float OnValueGUI(Rect position, GUIContent label, float value)
|
||||
|
Loading…
Reference in New Issue
Block a user