Skip to content

Commit 27c024c

Browse files
authored
Merge pull request #243 from hadashiA/ku/fix-none-option
Fix a bug that prevented the selection of None for Parent Reference
2 parents a15eb83 + ea27793 commit 27c024c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

VContainer/Assets/VContainer/Editor/ParentReferencePropertyDrawer.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ public sealed class ParentReferencePropertyDrawer : PropertyDrawer
1313
{
1414
static string[] GetAllTypeNames()
1515
{
16-
return TypeCache.GetTypesDerivedFrom<LifetimeScope>()
17-
.Select(type => type.FullName)
16+
return new List<string> { "None" }
17+
.Concat(TypeCache.GetTypesDerivedFrom<LifetimeScope>()
18+
.Select(type => type.FullName))
1819
.ToArray();
1920
}
2021

0 commit comments

Comments
 (0)