SCInputFieldBase.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.EventSystems;
  5. using UnityEngine.UI;
  6. namespace SC.XR.Unity
  7. {
  8. public class SCInputFieldBase : Selectable, IUpdateSelectedHandler, IEventSystemHandler, IBeginDragHandler, IDragHandler, IEndDragHandler, IPointerClickHandler, ISubmitHandler, ICanvasElement, ILayoutElement
  9. {
  10. #region Base
  11. public virtual float minWidth { get; }
  12. public virtual float preferredWidth { get; }
  13. public virtual float flexibleWidth { get; }
  14. public virtual float minHeight { get; }
  15. public virtual float preferredHeight { get; }
  16. public virtual float flexibleHeight { get; }
  17. public virtual int layoutPriority { get; }
  18. public virtual void CalculateLayoutInputHorizontal()
  19. {
  20. }
  21. public virtual void CalculateLayoutInputVertical()
  22. {
  23. }
  24. public virtual void GraphicUpdateComplete()
  25. {
  26. }
  27. public virtual void LayoutComplete()
  28. {
  29. }
  30. public virtual void OnBeginDrag(PointerEventData eventData)
  31. {
  32. }
  33. public virtual void OnDrag(PointerEventData eventData)
  34. {
  35. }
  36. public virtual void OnEndDrag(PointerEventData eventData)
  37. {
  38. }
  39. public virtual void OnPointerClick(PointerEventData eventData)
  40. {
  41. }
  42. public virtual void OnSubmit(BaseEventData eventData)
  43. {
  44. }
  45. public virtual void OnUpdateSelected(BaseEventData eventData)
  46. {
  47. }
  48. public virtual void Rebuild(CanvasUpdate executing)
  49. {
  50. }
  51. public virtual void Append(string input)
  52. {
  53. }
  54. public virtual void Append(char input)
  55. {
  56. }
  57. #endregion
  58. #region Common
  59. public virtual int selectionAnchorPosition { get; set; }
  60. public virtual int selectionFocusPosition { get; set; }
  61. public virtual int caretPosition { get; set; }
  62. public virtual string text { get; set; }
  63. #endregion
  64. #region Override
  65. #endregion
  66. #region Custom
  67. [SerializeField]
  68. public SCKeyboardEnum m_SCKeyboardEnum = SCKeyboardEnum.SCKeyboard2D;
  69. #endregion
  70. }
  71. }