Skip to content

Commit 1c48a6f

Browse files
committed
Fix bindable elements UxmlFactory issue.
1 parent c810eaa commit 1c48a6f

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/UnityMvvmToolkit.UnityPackage/Assets/Plugins/UnityMvvmToolkit/Runtime/UITK/BindableUIElements/Uxmls/BindableButton.Uxml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ partial class BindableButton
77
{
88
public string Command { get; private set; }
99

10+
public new class UxmlFactory : UxmlFactory<BindableButton, UxmlTraits>
11+
{
12+
}
13+
1014
#if UNITY_2023_2_OR_NEWER
1115
[System.Serializable]
1216
public new class UxmlSerializedData : BaseButton.UxmlSerializedData
@@ -23,10 +27,6 @@ public override void Deserialize(object visualElement)
2327
visualElement.As<BindableButton>().Command = Command;
2428
}
2529
}
26-
27-
public new class UxmlFactory : UxmlFactory<BindableButton, UxmlTraits>
28-
{
29-
}
3030
#else
3131
public new class UxmlTraits : BaseButton.UxmlTraits
3232
{

src/UnityMvvmToolkit.UnityPackage/Assets/Plugins/UnityMvvmToolkit/Runtime/UITK/BindableUIElements/Uxmls/BindableLabel.Uxml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ partial class BindableLabel
77
{
88
public string BindingTextPath { get; private set; }
99

10+
public new class UxmlFactory : UxmlFactory<BindableLabel, UxmlTraits>
11+
{
12+
}
13+
1014
#if UNITY_2023_2_OR_NEWER
1115
[System.Serializable]
1216
public new class UxmlSerializedData : Label.UxmlSerializedData
@@ -23,10 +27,6 @@ public override void Deserialize(object visualElement)
2327
visualElement.As<BindableLabel>().BindingTextPath = BindingTextPath;
2428
}
2529
}
26-
27-
public new class UxmlFactory : UxmlFactory<BindableLabel, UxmlTraits>
28-
{
29-
}
3030
#else
3131
public new class UxmlTraits : Label.UxmlTraits
3232
{

src/UnityMvvmToolkit.UnityPackage/Assets/Plugins/UnityMvvmToolkit/Runtime/UITK/BindableUIElements/Uxmls/BindableTextField.Uxml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ partial class BindableTextField
77
{
88
public string BindingValuePath { get; private set; }
99

10+
public new class UxmlFactory : UxmlFactory<BindableTextField, UxmlTraits>
11+
{
12+
}
13+
1014
#if UNITY_2023_2_OR_NEWER
1115
[System.Serializable]
1216
public new class UxmlSerializedData : TextField.UxmlSerializedData
@@ -23,10 +27,6 @@ public override void Deserialize(object visualElement)
2327
visualElement.As<BindableTextField>().BindingValuePath = BindingValuePath;
2428
}
2529
}
26-
27-
public new class UxmlFactory : UxmlFactory<BindableTextField, UxmlTraits>
28-
{
29-
}
3030
#else
3131
public new class UxmlTraits : TextField.UxmlTraits
3232
{

0 commit comments

Comments
 (0)