Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 0511ce2

Browse files
committed
Build fixes
1 parent 4f8444a commit 0511ce2

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

Bindings/Packages/com.virtualmaker.bindings/Runtime/Bindings.UIElements.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void BindText<T>(string name, IProperty<T> prop)
2828

2929
public void BindText<T, W>(string name, IProperty<T> prop, Func<T, W> transform)
3030
{
31-
BindText(name, new Derived<T, W>(prop, transform));
31+
BindText(name, Derived.From(prop, transform));
3232
}
3333

3434
public void BindButtonText<T>(string name, IProperty<T> prop)
@@ -38,7 +38,7 @@ public void BindButtonText<T>(string name, IProperty<T> prop)
3838

3939
public void BindButtonText<TValue, TTransform>(string name, IProperty<TValue> prop, Func<TValue, TTransform> transform)
4040
{
41-
BindButtonText(name, new Derived<TValue, TTransform>(prop, transform));
41+
BindButtonText(name, Derived.From(prop, transform));
4242
}
4343

4444
public void SetText<T>(string name, T value)
@@ -72,7 +72,7 @@ public void BindWidth(string name, IProperty<StyleLength> prop)
7272

7373
public void BindWidth<T>(string name, IProperty<T> prop, Func<T, StyleLength> transform)
7474
{
75-
BindWidth(name, new Derived<T, StyleLength>(prop, transform));
75+
BindWidth(name, Derived.From(prop, transform));
7676
}
7777

7878
public void SetWidth(string name, StyleLength value)
@@ -133,7 +133,7 @@ public void BindDisplay(string name, bool fade, IProperty<bool> prop)
133133

134134
public void BindDisplay<T>(string name, bool fade, IProperty<T> prop, Func<T, bool> transform)
135135
{
136-
BindDisplay(name, fade, new Derived<T, bool>(prop, transform));
136+
BindDisplay(name, fade, Derived.From(prop, transform));
137137
}
138138

139139
private void SetImage(Image element, VectorImage vectorImage)
@@ -229,7 +229,7 @@ public void SetBackgroundColor(string name, Color color)
229229

230230
public void BindImage<T>(string name, IProperty<T> prop, Func<T, string> transform)
231231
{
232-
BindImage(name, new Derived<T, string>(prop, transform));
232+
BindImage(name, Derived.From(prop, transform));
233233
}
234234

235235
public void BindImage(string name, IProperty<string> prop)
@@ -254,7 +254,7 @@ public void BindImage(string name, IProperty<Texture> prop)
254254

255255
public void BindBackgroundImage<T>(string name, IProperty<T> prop, Func<T, string> transform)
256256
{
257-
BindBackgroundImage(name, new Derived<T, string>(prop, transform));
257+
BindBackgroundImage(name, Derived.From(prop, transform));
258258
}
259259

260260
public void BindBackgroundImage(string name, IProperty<string> prop)
@@ -347,7 +347,7 @@ public void BindClass(string name, string className, IProperty<bool> prop)
347347

348348
public void BindClass<T>(string name, string className, IProperty<T> prop, Func<T, bool> transform)
349349
{
350-
BindClass(name, className, new Derived<T, bool>(prop, transform));
350+
BindClass(name, className, Derived.From(prop, transform));
351351
}
352352

353353
public void BindEnabled(string name, IProperty<bool> prop)
@@ -360,7 +360,7 @@ public void BindEnabled(string name, IProperty<bool> prop)
360360

361361
public void BindEnabled<T>(string name, IProperty<T> prop, Func<T, bool> transform)
362362
{
363-
BindEnabled(name, new Derived<T, bool>(prop, transform));
363+
BindEnabled(name, Derived.From(prop, transform));
364364
}
365365

366366
public void BindEnabled(string name, params IProperty<bool>[] props)
@@ -504,7 +504,7 @@ public void OnClick(string name, Action action)
504504

505505
public void OnClick<T>(string name, Action action, IProperty<T> canExecuteProp, Func<T, bool> transform)
506506
{
507-
OnClick(name, action, new Derived<T, bool>(canExecuteProp, transform));
507+
OnClick(name, action, Derived.From(canExecuteProp, transform));
508508
}
509509

510510
public void OnClick(string name, Action action, IProperty<bool> canExecute)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &1
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 61
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 11500000, guid: a287be6c49135cd4f9b2b8666c39d999, type: 3}
13+
m_Name:
14+
m_EditorClassIdentifier:
15+
assetDefaultFramerate: 60
16+
m_DefaultFrameRate: 60

0 commit comments

Comments
 (0)