TextArea.cs 521 B

1234567891011121314151617
  1. using UnityEngine;
  2. namespace COM3D2.MeidoPhotoStudio.Plugin
  3. {
  4. public class TextArea : BaseControl
  5. {
  6. public string Value { get; set; } = string.Empty;
  7. public void Draw(GUIStyle textAreaStyle, params GUILayoutOption[] layoutOptions)
  8. {
  9. Value = GUILayout.TextArea(Value, textAreaStyle, layoutOptions);
  10. }
  11. public override void Draw(params GUILayoutOption[] layoutOptions)
  12. {
  13. Draw(new GUIStyle(GUI.skin.textArea), layoutOptions);
  14. }
  15. }
  16. }