Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 5e3173f

Browse files
Removed forced non-propertydrawer rendering
1 parent 677ea07 commit 5e3173f

2 files changed

Lines changed: 6 additions & 15 deletions

File tree

Assets/NewBehaviourScript.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ public class NewBehaviourScript : MonoBehaviour
3333
//private LongReference longReference;
3434
//[SerializeField]
3535
//private ObjectReference objectReference;
36-
[SerializeField]
37-
private QuaternionReference quaternionReference;
36+
//[SerializeField]
37+
//private QuaternionReference quaternionReference;
3838
//[SerializeField]
3939
//private SByteReference sByteReference;
4040

41-
//[SerializeField]
42-
//private SceneReference sceneReference;
41+
[SerializeField]
42+
private SceneReference sceneReference;
4343

4444
//[SerializeField]
4545
//private ShortReference shortReference;

Assets/SO Architecture/Editor/Drawers/GenericPropertyDrawer.cs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static class GenericPropertyDrawer
1212

1313
public static void DrawPropertyDrawerNew(Rect rect, SerializedProperty property, Type type, bool drawLabel = true)
1414
{
15-
if(false/*SOArchitecture_EditorUtility.HasPropertyDrawer(type)*/)
15+
if(SOArchitecture_EditorUtility.HasPropertyDrawer(type))
1616
{
1717
EditorGUI.PropertyField(rect, property);
1818
}
@@ -25,7 +25,7 @@ public static void DrawPropertyDrawerNew(Rect rect, SerializedProperty property,
2525
}
2626
public static void DrawPropertyDrawerLayoutNew(SerializedProperty property, Type type, bool drawLabel = true)
2727
{
28-
if (false/*SOArchitecture_EditorUtility.HasPropertyDrawer(type)*/)
28+
if (SOArchitecture_EditorUtility.HasPropertyDrawer(type))
2929
{
3030
EditorGUILayout.PropertyField(property);
3131
}
@@ -34,15 +34,6 @@ public static void DrawPropertyDrawerLayoutNew(SerializedProperty property, Type
3434
PropertyDrawIteratorLayout iter = new PropertyDrawIteratorLayout(property.Copy(), drawLabel);
3535

3636
DrawPropertyDrawerNewInternal(iter);
37-
38-
//SerializedProperty iter = property.Copy();
39-
//if (iter.NextVisible(true))
40-
//{
41-
// do
42-
// {
43-
// EditorGUILayout.PropertyField(iter);
44-
// } while (iter.NextVisible(true));
45-
//}
4637
}
4738
}
4839
private static void DrawPropertyDrawerNewInternal(IPropertyDrawIterator iter)

0 commit comments

Comments
 (0)