PDFViewerSearchButton.cs 333 B

1234567891011121314
  1. using UnityEngine.EventSystems;
  2. namespace Paroxe.PdfRenderer.Internal.Viewer
  3. {
  4. public class PDFViewerSearchButton : UIBehaviour
  5. {
  6. public void OnClick()
  7. {
  8. #if !UNITY_WEBGL
  9. GetComponentInParent<PDFViewer>().m_Internal.SearchPanel.GetComponent<PDFSearchPanel>().Toggle();
  10. #endif
  11. }
  12. }
  13. }