HeavenStudioPlus/Assets/Scripts/UI/LeftClickTMP_Dropdown.cs

18 lines
423 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine.EventSystems;
namespace HeavenStudio.Common
{
public class LeftClickTMP_Dropdown : TMP_Dropdown
{
public override void OnPointerClick(PointerEventData eventData)
{
if (eventData.button == PointerEventData.InputButton.Right) return;
base.OnPointerClick(eventData);
}
}
}