Skip to content

Commit b471284

Browse files
authored
Merge pull request #4 from coryleach/dev
Bump for 2019.1 compatibility fix
2 parents 17b5401 + acf8d47 commit b471284

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

Editor/BindingDataContextInfoDrawer.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,14 @@ public override VisualElement CreatePropertyGUI(SerializedProperty property)
3737
borderLeftWidth = 1,
3838
borderRightWidth = 1,
3939
borderTopWidth = 1,
40+
#if UNITY_2019_3_OR_NEWER
4041
borderBottomColor = Color.black,
4142
borderLeftColor = Color.black,
4243
borderRightColor = Color.black,
43-
borderTopColor = Color.black,
44+
borderTopColor = Color.black,
45+
#else
46+
borderColor = Color.black,
47+
#endif
4448
backgroundColor = new Color(0,0,0,0.1f)
4549
}
4650
};

Editor/BindingEditor.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,14 @@ public override VisualElement CreateInspectorGUI()
5353
borderLeftWidth = 1,
5454
borderRightWidth = 1,
5555
borderTopWidth = 1,
56+
#if UNITY_2019_3_OR_NEWER
5657
borderBottomColor = Color.black,
5758
borderLeftColor = Color.black,
5859
borderRightColor = Color.black,
59-
borderTopColor = Color.black,
60+
borderTopColor = Color.black,
61+
#else
62+
borderColor = Color.black,
63+
#endif
6064
backgroundColor = new Color(0, 0, 0, 0.1f)
6165
}
6266
};

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,22 @@
1515
This is a library of binding components that allow you to quickly wire data sources to target properties via the inspector.
1616

1717
Binding changes propagate via the System.ComponentModel.INotifyPropertyChanged interface but the included binding components will also refresh their target properties in OnEnable.
18-
A general purpose ComponentBinding monobehaviour is included to wire any two UnityEngine.Objects together as well as a TextBinding for quick and simple binding to text fields.
19-
18+
A general purpose ComponentBinding monobehaviour is included to wire any two UnityEngine.Objects together as well as a TextBinding for quick and simple binding to text fields.
2019

2120
## Quick Package Install
2221

2322
#### Using UnityPackageManager (for Unity 2019.3 or later)
2423
Open the package manager window (menu: Window > Package Manager)<br/>
2524
Select "Add package from git URL...", fill in the pop-up with the following link:<br/>
26-
https://github.com/coryleach/UnityBindings.git#1.0.3<br/>
25+
https://github.com/coryleach/UnityBindings.git#1.0.4<br/>
2726

2827
#### Using UnityPackageManager (for Unity 2019.1 or later)
2928

3029
Find the manifest.json file in the Packages folder of your project and edit it to look like this:
3130
```js
3231
{
3332
"dependencies": {
34-
"com.gameframe.bindings": "https://github.com/coryleach/UnityBindings.git#1.0.3",
33+
"com.gameframe.bindings": "https://github.com/coryleach/UnityBindings.git#1.0.4",
3534
...
3635
},
3736
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "com.gameframe.bindings",
33
"displayName": "Gameframe.Bindings",
4-
"version": "1.0.3",
5-
"description": "This is a library of binding components that allow you to quickly wire data sources to target properties via the inspector. \n \nBinding changes propagate via the System.ComponentModel.INotifyPropertyChanged interface but the included binding components will also refresh their target properties in OnEnable. \nA general purpose ComponentBinding monobehaviour is included to wire any two UnityEngine.Objects together as well as a TextBinding for quick and simple binding to text fields.\r\n",
4+
"version": "1.0.4",
5+
"description": "This is a library of binding components that allow you to quickly wire data sources to target properties via the inspector. \n \nBinding changes propagate via the System.ComponentModel.INotifyPropertyChanged interface but the included binding components will also refresh their target properties in OnEnable. \nA general purpose ComponentBinding monobehaviour is included to wire any two UnityEngine.Objects together as well as a TextBinding for quick and simple binding to text fields.",
66
"keywords": [],
77
"author": {
88
"name": "Cory Leach",

0 commit comments

Comments
 (0)