Skip to content

Commit 386ee4f

Browse files
author
krzysztof biernat
committed
Correct bool variable property drawer and add reference drawer
1 parent f3b7ab8 commit 386ee4f

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using UnityEditor;
2+
3+
namespace GTVariable.Editor
4+
{
5+
[CustomPropertyDrawer(typeof(BoolReference))]
6+
public class BoolReferenceVariablePropertyDrawer : ReferenceVariablePropertyDrawer
7+
{
8+
9+
}
10+
}

Editor/Reference/BoolReferenceVariablePropertyDrawer.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/Varaible/BoolVariablePropertyDrawer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace GTVariable.Editor
44
{
55

6-
[CustomPropertyDrawer(typeof(BoolReference))]
7-
public class BoolReferenceVariablePropertyDrawer : ReferenceVariablePropertyDrawer
6+
[CustomPropertyDrawer(typeof(BoolVariable))]
7+
public class BoolVariablePropertyDrawer : VariablePropertyDrawer
88
{
99

1010
}

0 commit comments

Comments
 (0)