Skip to content

Commit 07d34ae

Browse files
committed
fix: update metadata
1 parent d1bcf66 commit 07d34ae

4 files changed

Lines changed: 3 additions & 9 deletions

File tree

CHANGELOG.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [Unreleased]
7+
## [2.6.0] - 05/16/2026
88
### Added
99
- New `PreviewMode` enum (`Default`/`Inline`/`PropertyEditorWindow`) on `SOCItemEditorOptionsAttribute`, plus a matching project-wide default in `SOCSettings` (Project Settings > Scriptable Object Collection > Item Inspector). When set to `PropertyEditorWindow`, the per-field Edit button opens Unity's floating Property Editor via `EditorUtility.OpenPropertyEditor` instead of the inline preview panel — fixes rendering issues with third-party inspectors (e.g. Odin) that don't draw correctly in the inline IMGUI drawer. `Default` on the attribute defers to the project setting; project setting defaults to `Inline` so existing behavior is unchanged.
1010
- New `CollectionItemMask64` static helper plus `IEnumerable<T>.ToItemMask64<T>()` and `List<T>.FromItemMask64<T>()` extension methods. Provides a 64-bit bitmask representation of a set of collection items keyed on `ScriptableObjectCollectionItem.Index`, with `Bit`/`Has`/`Add`/`Remove`/`Overlaps`/`IsSubsetOf` helpers and a `From<T>(items, out bool fits)` builder that flags when any item's `Index >= 64`. Bit positions are per-collection — callers are responsible for only comparing masks built from items of the same collection.

Scripts/Editor/Core/CodeGenerationUtility.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,7 @@ public static void GenerateIndirectAccessForCollectionItemType(string collection
366366

367367
// Delete any existing files that have the old deprecated extension.
368368
string deprecatedFileName = targetFileName + ExtensionOld;
369-
#if UNITY_2023_1_OR_NEWER
370369
if (AssetDatabase.AssetPathExists(deprecatedFileName))
371-
#else
372-
if (AssetDatabase.LoadAssetAtPath<UnityEngine.Object>(deprecatedFileName) != null)
373-
#endif
374370
{
375371
Debug.LogWarning($"Deleting deprecated Indirect Access file '{deprecatedFileName}'.");
376372
AssetDatabase.DeleteAsset(deprecatedFileName);

Scripts/Editor/PropertyDrawers/CollectionItemPropertyDrawer.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99

1010
namespace BrunoMikoski.ScriptableObjectCollections
1111
{
12-
#if UNITY_2022_2_OR_NEWER
1312
[CustomPropertyDrawer(typeof(ISOCItem), true)]
14-
#endif
1513
[CustomPropertyDrawer(typeof(ScriptableObjectCollectionItem), true)]
1614
public class CollectionItemPropertyDrawer : PropertyDrawer
1715
{

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.brunomikoski.scriptableobjectcollection",
33
"displayName": "Scriptable Object Collection",
4-
"version": "2.5.1",
4+
"version": "2.6.0",
55
"unity": "6000.0",
66
"description": "A library to help improve the usability of Unity3D Scriptable Objects by grouping them into a collection and exposing them by code or nice inspectors!",
77
"keywords": [
@@ -24,7 +24,7 @@
2424
"samples": [
2525
{
2626
"displayName": "Addressables Loaded Collection",
27-
"description": "This sample shows how you can leverage the ScriptableObjectCollection to create a collection that is managed by the Addressables system. Allowing you to update it on the fly and also show some of the new features of the 2.3.1 version",
27+
"description": "This sample shows how you can leverage the ScriptableObjectCollection to create a collection that is managed by the Addressables system, allowing you to update it on the fly.",
2828
"path": "Samples~/AddressablesCollection"
2929
}
3030
]

0 commit comments

Comments
 (0)