Skip to content

[APDM-1956] Fix DM work on Unity v6.4-beta#138

Merged
DmitriiFeshchenko merged 2 commits intorelease/4.1.0from
fix/APDM-1956-dm-not-working-on-unity-v6.4-beta
Feb 27, 2026
Merged

[APDM-1956] Fix DM work on Unity v6.4-beta#138
DmitriiFeshchenko merged 2 commits intorelease/4.1.0from
fix/APDM-1956-dm-not-working-on-unity-v6.4-beta

Conversation

@DmitriiFeshchenko
Copy link
Collaborator

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates two custom UIElements classes to support Unity 6.x's new UIElement registration system while maintaining backward compatibility with older Unity versions. Unity 6.x deprecated the old UxmlFactory pattern in favor of the [UxmlElement] attribute on partial classes.

Changes:

  • Added conditional compilation to use [UxmlElement] attribute for Unity 6.x and newer
  • Changed classes from regular to partial classes to support the new attribute-based registration
  • Wrapped legacy UxmlFactory declarations in conditional compilation for pre-Unity 6.x versions

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Editor/DependencyManager/UIElements/Widgets/Sdk/VersionDropdown/SdkVersionDropdown.cs Updated UIElement registration to support Unity 6.x using [UxmlElement] attribute and partial class, with conditional compilation for backward compatibility
Editor/DependencyManager/UIElements/Widgets/Sdk/Cards/Shell/SdkCardShell.cs Updated UIElement registration to support Unity 6.x using [UxmlElement] attribute and partial class, with conditional compilation for backward compatibility

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DmitriiFeshchenko DmitriiFeshchenko merged commit 6766f16 into release/4.1.0 Feb 27, 2026
2 checks passed
@DmitriiFeshchenko DmitriiFeshchenko deleted the fix/APDM-1956-dm-not-working-on-unity-v6.4-beta branch February 27, 2026 08:56
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.

4 participants