Skip to content

Commit 4148d81

Browse files
committed
Minor refactor changes
1 parent 89c51b9 commit 4148d81

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

Assets/Editor Toolbox/Editor/ToolboxPropertyHandler.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ internal ToolboxPropertyHandler(SerializedProperty property)
117117
ProcessToolboxData();
118118
}
119119

120-
121120
private void ProcessBuiltInData()
122121
{
123122
var attributes = fieldInfo.GetCustomAttributes<PropertyAttribute>();

Assets/Editor Toolbox/Editor/Utilities/PropertyUtility.cs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@
99

1010
namespace Toolbox.Editor
1111
{
12-
public static partial class PropertyUtility
12+
public static class PropertyUtility
1313
{
14+
internal static class Defaults
15+
{
16+
internal static readonly string scriptPropertyName = "m_Script";
17+
}
18+
1419
//NOTE: last non-reflection implementation was ok but support for [SerializeReference] makes it a bit slow
1520
// unfortunately UnityEditor.ScriptAttributeUtility.GetFieldInfoFromProperty is internal so we have to retrive it using reflection
1621
private static readonly MethodInfo getGetFieldInfoFromPropertyMethod =
@@ -440,14 +445,6 @@ public static void OverrideLabelByValue(GUIContent label, SerializedProperty pro
440445
}
441446
}
442447

443-
internal static class Defaults
444-
{
445-
internal static readonly string scriptPropertyName = "m_Script";
446-
}
447-
}
448-
449-
public static partial class PropertyUtility
450-
{
451448
public static SerializedProperty GetSibling(this SerializedProperty property, string propertyPath)
452449
{
453450
var propertyParent = property.GetParent();

0 commit comments

Comments
 (0)