com.unity.properties.ui 2.0.0-exp.11
Notes: processedReleased May 9, 2022
Unity Compatibility
Minimum Unity: 2021.3 (0f1)
Package Dependencies
- com.unity.modules.uielements (1.0.0)
- com.unity.properties (2.0.0-exp.11)
- com.unity.serialization (2.0.0-exp.11)
- com.unity.test-framework.performance (2.8.0-preview)
✨ Features
- Added the `InspectorElement` type to generate a UI hierarchy. This works similarly to `PropertyElement`, but allows to define a custom inspectors specifically for the root target instance.
- Added support for inlining a `UnityEngine.Object` when the field or property is tagged with the `[InlineUnityObject]` attribute.
- Added call to action to install the Quick Search package when using `SearchElement` with filters.
- Added the `InlineUnityObjectAttribute` attribute to inline a `UnityEngine.Object` reference in the UI instead of an `ObjectField`.
- Added `SearchElement.AddSearchOperatorHandler` to allow custom operator handling.
📈 Improvements
- Updated minimum Unity version to `2021.3`.
- Updated `com.unity.properties` to version `2.0.0-exp.11`.
- Updated `com.unity.serialization` to version `2.0.0-exp.11`.
- Updated `com.unity.test-framework.performance` to version `2.4.0`.
- ***Breaking change*** Previous `Inspector` has been renamed to `PropertyInspector`.
- ***Breaking change*** `PropertyDrawer` has been renamed to `PropertyInspector`.
- ***Breaking change*** `Inspector` can now be used to declare custom inspector on root objects, when using `InspectorElement`.
- ***Breaking change*** `AddSearchFilterProperty` and `AddSearchFilterCallback` now take a `SearchFilterOptions` to provide additional customization.
🔧 Bug Fixes
- Fixed `SearchHandler` to always call `OnFilter` at least once when running in `async` mode regardless of results.
- Fixed exception thrown when returning null from `SetSearchDataProvider`.
- Fixed exception thrown when returning null or a null element from `AddSearchDataCallback`.
- In Unity versions prior to `2020.2`, Enums using an underlying type of `long` will now be skipped when generating the UI hierarchy, since they can't be represented correctly.
- `SearchElement.GlobalStringComparison` property is now correctly propagated to underlying backends.
- `PropertiesSearchBackend` uses the configured `GlobalStringComparison` instead of `OrdinalIgnoreCase`.
