Rename editor namespaces.

This commit is contained in:
2025-11-05 23:57:44 +01:00
parent a4ec9f4801
commit 60544312be
9 changed files with 198 additions and 200 deletions

View File

@@ -4,15 +4,14 @@ using System.Collections;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using UnityEditor;
namespace UnityUtilities.SerializableDataHelpers.UnityEditorUtilities
namespace SerializableFunc.Editor.Extensions.SerializedProperty
{
public static class SerializedPropertyExtensions
{
static readonly Regex rgx = new Regex(@"\[\d+\]", RegexOptions.Compiled);
public static object GetBoxedValue(this SerializedProperty property)
public static object GetBoxedValue(this UnityEditor.SerializedProperty property)
{
property.serializedObject.ApplyModifiedProperties();
#if UNITY_2023_2_OR_NEWER
@@ -22,7 +21,7 @@ namespace UnityUtilities.SerializableDataHelpers.UnityEditorUtilities
#endif
}
public static void SetBoxedValue(this SerializedProperty property, object value)
public static void SetBoxedValue(this UnityEditor.SerializedProperty property, object value)
{
property.serializedObject.Update();
#if UNITY_2023_2_OR_NEWER
@@ -33,7 +32,7 @@ namespace UnityUtilities.SerializableDataHelpers.UnityEditorUtilities
property.serializedObject.ApplyModifiedProperties();
}
public static T GetValue<T>(this SerializedProperty property) where T : class
public static T GetValue<T>(this UnityEditor.SerializedProperty property) where T : class
{
object obj = property.serializedObject.targetObject;
string path = property.propertyPath.Replace(".Array.data", string.Empty);
@@ -53,7 +52,7 @@ namespace UnityUtilities.SerializableDataHelpers.UnityEditorUtilities
return (T)obj;
}
public static bool SetValue<T>(this SerializedProperty property, T value) where T : class
public static bool SetValue<T>(this UnityEditor.SerializedProperty property, T value) where T : class
{
object obj = property.serializedObject.targetObject;
string path = property.propertyPath.Replace(".Array.data", "");