FileBrowserQuickLink.cs 677 B

1234567891011121314151617181920212223242526272829303132
  1. using UnityEngine;
  2. using UnityEngine.EventSystems;
  3. namespace SimpleFileBrowser
  4. {
  5. public class FileBrowserQuickLink : FileBrowserItem, IPointerClickHandler
  6. {
  7. #region Properties
  8. private string m_targetPath;
  9. public string TargetPath { get { return m_targetPath; } }
  10. #endregion
  11. #region Initialization Functions
  12. public void SetQuickLink( Sprite icon, string name, string targetPath )
  13. {
  14. SetFile( icon, name, true );
  15. m_targetPath = targetPath;
  16. }
  17. #endregion
  18. #region Pointer Events
  19. public new void OnPointerClick( PointerEventData eventData )
  20. {
  21. fileBrowser.OnQuickLinkSelected( this );
  22. }
  23. #endregion
  24. #region Other Events
  25. #endregion
  26. }
  27. }