Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ public sealed class StableWrapperDrawer : PropertyDrawer
{
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
{
property = property.GetVisibleChildren().Single();
property = property.GetVisibleChildren().SingleOrDefault();
if (property == null) return 0;
return EditorGUI.GetPropertyHeight(property, includeChildren: true);
Comment thread
quabug marked this conversation as resolved.
}

public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
property = property.GetVisibleChildren().Single();
property = property.GetVisibleChildren().SingleOrDefault();
if (property == null) return;
EditorGUI.PropertyField(position, property, label, includeChildren: true);
Comment thread
quabug marked this conversation as resolved.
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.fullmetalbagel.unity-stable-reference",
"version": "1.1.1",
"version": "1.1.2",
"displayName": "Unity Stable Reference",
"unity": "2022.3",
"samples": [
Expand Down
Loading