diff --git a/Runtime/Common/View/BaseView.cs b/Runtime/Common/View/BaseView.cs index 75a105d..17f2df5 100644 --- a/Runtime/Common/View/BaseView.cs +++ b/Runtime/Common/View/BaseView.cs @@ -34,7 +34,7 @@ public class BaseView : UIObject, IRecipient 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); diff --git a/package.json b/package.json index a39a8c7..8ecc66c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "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", @@ -8,7 +8,7 @@ "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": [ {