Skip to content

Commit 6e6adba

Browse files
committed
Change: IsRequired default value
1 parent 9c5dc3e commit 6e6adba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ComponentCacheGenerator/Assets/ComponentCacheGenerator/Runtime/GenerateComponentCacheAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public GenerateComponentCacheAttribute(Type componentType)
2020

2121
public Type ComponentType { get; }
2222
public ComponentSearchScope SearchScope { get; set; } = ComponentSearchScope.Self;
23-
public bool IsRequired { get; set; } = false;
23+
public bool IsRequired { get; set; } = true;
2424
public string PropertyName { get; set; } = null;
2525
}
2626
}

0 commit comments

Comments
 (0)