Updated build issue with ReorderableListElement

pull/413/head
Simon Jackson 2023-01-03 19:22:19 +00:00
parent 2f19deeb78
commit 78d3b898c1
1 changed files with 6 additions and 7 deletions

View File

@ -13,25 +13,24 @@ namespace UnityEngine.UI.Extensions
{ {
[Tooltip("Can this element be dragged?")] [Tooltip("Can this element be dragged?")]
[SerializeField] [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] [SerializeField]
private bool _isTransferable = true; private bool isTransferable = true;
[Tooltip("Can this element be dropped in space?")] [Tooltip("Can this element be dropped in space?")]
[SerializeField] [SerializeField]
private bool isDroppableInSpace = false; private bool isDroppableInSpace = false;
[Tooltip("Can this element be dropped in another container?")]
public bool IsTransferable public bool IsTransferable
{ {
get { return _isTransferable; } get { return isTransferable; }
set set
{ {
_canvasGroup = gameObject.GetOrAddComponent<CanvasGroup>(); _canvasGroup = gameObject.GetOrAddComponent<CanvasGroup>();
_canvasGroup.blocksRaycasts = value; _canvasGroup.blocksRaycasts = value;
_isTransferable = value; isTransferable = value;
} }
} }
@ -69,7 +68,7 @@ namespace UnityEngine.UI.Extensions
return; return;
//Can't drag, return... //Can't drag, return...
if (!_reorderableList.IsDraggable || !this.IsGrabbable) if (!_reorderableList.IsDraggable || !this.isGrabbable)
{ {
_draggingObject = null; _draggingObject = null;
return; return;