From 78d3b898c14411d2e6b372edbc086f9822fcaa40 Mon Sep 17 00:00:00 2001 From: Simon Jackson Date: Tue, 3 Jan 2023 19:22:19 +0000 Subject: [PATCH] Updated build issue with ReorderableListElement --- .../ReorderableList/ReorderableListElement.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Runtime/Scripts/Controls/ReorderableList/ReorderableListElement.cs b/Runtime/Scripts/Controls/ReorderableList/ReorderableListElement.cs index 0a137ac..eb1484c 100644 --- a/Runtime/Scripts/Controls/ReorderableList/ReorderableListElement.cs +++ b/Runtime/Scripts/Controls/ReorderableList/ReorderableListElement.cs @@ -13,25 +13,24 @@ namespace UnityEngine.UI.Extensions { [Tooltip("Can this element be dragged?")] [SerializeField] - private bool IsGrabbable = true; + private bool isGrabbable = true; - [Tooltip("Can this element be transfered to another list")] + [Tooltip("Can this element be dropped in another container?")] [SerializeField] - private bool _isTransferable = true; + private bool isTransferable = true; [Tooltip("Can this element be dropped in space?")] [SerializeField] private bool isDroppableInSpace = false; - [Tooltip("Can this element be dropped in another container?")] public bool IsTransferable { - get { return _isTransferable; } + get { return isTransferable; } set { _canvasGroup = gameObject.GetOrAddComponent(); _canvasGroup.blocksRaycasts = value; - _isTransferable = value; + isTransferable = value; } } @@ -69,7 +68,7 @@ namespace UnityEngine.UI.Extensions return; //Can't drag, return... - if (!_reorderableList.IsDraggable || !this.IsGrabbable) + if (!_reorderableList.IsDraggable || !this.isGrabbable) { _draggingObject = null; return;