Esempio n. 1
0
 // When free space inside ScrollRect is clicked:
 // Left click: deselect selected file(s)
 // Right click: show context menu
 public void OnPointerClick(PointerEventData eventData)
 {
     if (eventData.button == PointerEventData.InputButton.Left)
     {
         fileBrowser.DeselectAllFiles();
     }
     else if (eventData.button == PointerEventData.InputButton.Right)
     {
         fileBrowser.OnContextMenuTriggered(eventData.position);
     }
 }
Esempio n. 2
0
 public void OnDeselectAllButtonClicked()
 {
     Hide();
     fileBrowser.DeselectAllFiles();
 }