Rename editor namespaces.
This commit is contained in:
@@ -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", "");
|
||||
|
||||
Reference in New Issue
Block a user