Skip to content

Commit 2ee085b

Browse files
committed
fix: result as ReadOnlyList
1 parent 01273cd commit 2ee085b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Scripts/Runtime/Core/ScriptableObjectCollection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ protected virtual void ClearCachedValues()
382382
public class ScriptableObjectCollection<ObjectType> : ScriptableObjectCollection, IList<ObjectType>
383383
where ObjectType : ScriptableObjectCollectionItem
384384
{
385-
protected static List<ObjectType> cachedValues;
386-
public static List<ObjectType> Values
385+
private static List<ObjectType> cachedValues;
386+
public static IReadOnlyList<ObjectType> Values
387387
{
388388
get
389389
{

0 commit comments

Comments
 (0)