Skip to content

Conversation

@mackysoft
Copy link
Owner

Description

Changes made

Introduces IIntrinsicTypePolicy, ITypeCandiateProvider, and ITypeCompatibilityPolicy interfaces with default implementations for type filtering and compatibility checks. Adds Unity 2023.2+ specific implementations to support generic variance in type compatibility and candidate discovery. These abstractions improve extensibility and support for advanced type scenarios in SerializeReferenceExtensions.
Replaces TypeSearch with TypeCandiateService and TypeSearchService for improved modularity and extensibility. Updates SubclassSelectorDrawer to use the new service. Removes obsolete TypeSearch and related files.
Moved the UNITY_2023_2_OR_NEWER preprocessor directive to wrap the entire file instead of just the class, ensuring the file is only included for compatible Unity versions.
Moved the test assembly definition to an Editor folder, renamed it to MackySoft.SerializeReferenceExtensions.Tests.Editor, and updated its root namespace. Added a placeholder TypeCandidateTestTypes.cs script for future Editor tests.
Added checks to filter out primitive and enum types in the intrinsic type policy, ensuring only appropriate types are considered for serialization.
Introduces new unit tests for DefaultIntrinsicTypePolicy and TypeCandidateService, covering intrinsic type policy, base type inclusion, generic variance (Unity 2023.2+), and non-generic candidate filtering. Also expands TypeCandidateTestTypes with various test types to support these scenarios.
Moved type search-related interfaces and implementations into a new Editor/TypeSearch folder for better organization. Updated file paths and separated interface definitions from their default implementations.
@mackysoft mackysoft self-assigned this Jan 18, 2026
Replaces UNITY_LICENSE_2020 with UNITY_LICENSE, adds UNITY_EMAIL and UNITY_PASSWORD environment variables, and sets unityVersion to 2021.3.45f2 for the build job.
Changed Unity version from 2021.3.29f1 to 2021.3.45f2 in both package and release workflows. Updated UNITY_LICENSE secret reference in package workflow to use the generic UNITY_LICENSE variable.
@mackysoft mackysoft linked an issue Jan 18, 2026 that may be closed by this pull request
@mackysoft mackysoft merged commit 99530ff into main Jan 18, 2026
12 checks passed
@mackysoft mackysoft deleted the feature/abstract-generic-field-support branch January 18, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add abstract generic support

2 participants