Skip to content

Commit

Permalink
Hotfix: template container of instantiated view now also enforced wit…
Browse files Browse the repository at this point in the history
…h Ignore picking mode
  • Loading branch information
bustedbunny committed Feb 23, 2023
1 parent ded01ac commit 7b2667d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Runtime/Common/View/BaseView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class BaseView : UIObject, IRecipient<CloseViewsMessage>
protected virtual VisualElement Instantiate()
{
var root = asset.Instantiate();
// root.style.flexGrow = new StyleFloat(1f);
root.pickingMode = PickingMode.Ignore;
root.style.height = new(Length.Percent(100f));
root.style.width = new(Length.Percent(100f));
root.style.position = new(Position.Absolute);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "com.bustedbunny.mvvmtoolkit",
"version": "1.0.0-pre.3",
"version": "1.0.0-pre.4",
"displayName": "Model-View-ViewModel Toolkit",
"description": "This package brings MVVM to Unity UI Toolkit.",
"unity": "2022.2",
"unityRelease": "1f1",
"dependencies": {
"com.unity.localization": "1.4.3",
"com.unity.collections": "1.2.4",
"com.cysharp.unitask" : "2.3.3"
"com.cysharp.unitask": "2.3.3"
},
"samples": [
{
Expand Down

0 comments on commit 7b2667d

Please sign in to comment.