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

Commit b88c429

Browse files
Fixed collection elements drawing all elements below it
1 parent 9a8882a commit b88c429

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

Assets/SO Architecture/Editor/Generic Property Drawer/PropertyIterator.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ public virtual bool Next()
3535
nextVisible = iterator.NextVisible(true);
3636
}
3737

38+
if (!CanDraw())
39+
return false;
40+
3841
if(nextVisible)
3942
{
4043
if (iterator.propertyType == SerializedPropertyType.Generic)

Assets/StringCollection.asset

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 11500000, guid: fb12e3ad1486e2e4496d2933bc2e5456, type: 3}
13+
m_Name: StringCollection
14+
m_EditorClassIdentifier:
15+
_list: []

Assets/StringCollection.asset.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)