Skip to content

Commit

Permalink
fix: Unity2022 compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
fuqunaga committed Feb 17, 2025
1 parent 487fb73 commit b1c2e6a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@

namespace RosettaUI.UIToolkit
{
#if UNITY_2023_2_OR_NEWER
[UxmlElement]
#endif
public partial class ToggleButton : Button, INotifyValueChanged<bool>
{
#if !UNITY_2023_2_OR_NEWER
public new class UxmlFactory : UxmlFactory<ToggleButton, UxmlTraits>
{
}
#endif

public bool value
{
get => _isToggled;
Expand Down

0 comments on commit b1c2e6a

Please sign in to comment.