Skip to content

Commit

Permalink
Minor refactor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arimger committed Sep 8, 2024
1 parent 89c51b9 commit 4148d81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion Assets/Editor Toolbox/Editor/ToolboxPropertyHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ internal ToolboxPropertyHandler(SerializedProperty property)
ProcessToolboxData();
}


private void ProcessBuiltInData()
{
var attributes = fieldInfo.GetCustomAttributes<PropertyAttribute>();
Expand Down
15 changes: 6 additions & 9 deletions Assets/Editor Toolbox/Editor/Utilities/PropertyUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@

namespace Toolbox.Editor
{
public static partial class PropertyUtility
public static class PropertyUtility
{
internal static class Defaults
{
internal static readonly string scriptPropertyName = "m_Script";
}

//NOTE: last non-reflection implementation was ok but support for [SerializeReference] makes it a bit slow
// unfortunately UnityEditor.ScriptAttributeUtility.GetFieldInfoFromProperty is internal so we have to retrive it using reflection
private static readonly MethodInfo getGetFieldInfoFromPropertyMethod =
Expand Down Expand Up @@ -440,14 +445,6 @@ public static void OverrideLabelByValue(GUIContent label, SerializedProperty pro
}
}

internal static class Defaults
{
internal static readonly string scriptPropertyName = "m_Script";
}
}

public static partial class PropertyUtility
{
public static SerializedProperty GetSibling(this SerializedProperty property, string propertyPath)
{
var propertyParent = property.GetParent();
Expand Down

0 comments on commit 4148d81

Please sign in to comment.