TextArea.cs 439 B

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