2using System.Runtime.CompilerServices;
3using System.Runtime.InteropServices;
17 public Texture normalStateTexture { [MethodImpl(MethodImplOptions.InternalCall)]
get; [MethodImpl(MethodImplOptions.InternalCall)]
set; }
22 public Texture hoverStateTexture { [MethodImpl(MethodImplOptions.InternalCall)]
get; [MethodImpl(MethodImplOptions.InternalCall)]
set; }
27 public Texture activeStateTexture { [MethodImpl(MethodImplOptions.InternalCall)]
get; [MethodImpl(MethodImplOptions.InternalCall)]
set; }
41 INTERNAL_getHoverStateColor(out
Color value);
46 INTERNAL_setHoverStateColor(ref value);
57 INTERNAL_getActiveStateColor(out
Color value);
62 INTERNAL_setActiveStateColor(ref value);
73 INTERNAL_getDisabledStateColor(out
Color value);
78 INTERNAL_setDisabledStateColor(ref value);
85 public bool interactable { [MethodImpl(MethodImplOptions.InternalCall)]
get; [MethodImpl(MethodImplOptions.InternalCall)]
set; }
100 public string text { [MethodImpl(MethodImplOptions.InternalCall)]
get; [MethodImpl(MethodImplOptions.InternalCall)]
set; }
105 public Font font { [MethodImpl(MethodImplOptions.InternalCall)]
get; [MethodImpl(MethodImplOptions.InternalCall)]
set; }
110 public float fontSize { [MethodImpl(MethodImplOptions.InternalCall)]
get; [MethodImpl(MethodImplOptions.InternalCall)]
set; }
123 INTERNAL_set_textHorizontalAlignment((
int)value);
138 INTERNAL_set_textVerticalAlignment((
int)value);
144 [MethodImpl(MethodImplOptions.InternalCall)]
145 private extern void INTERNAL_getHoverStateColor(out
Color value);
147 [MethodImpl(MethodImplOptions.InternalCall)]
148 private extern void INTERNAL_setHoverStateColor(ref
Color value);
150 [MethodImpl(MethodImplOptions.InternalCall)]
151 private extern void INTERNAL_getActiveStateColor(out
Color value);
153 [MethodImpl(MethodImplOptions.InternalCall)]
154 private extern void INTERNAL_setActiveStateColor(ref
Color value);
156 [MethodImpl(MethodImplOptions.InternalCall)]
157 private extern void INTERNAL_getDisabledStateColor(out
Color value);
159 [MethodImpl(MethodImplOptions.InternalCall)]
160 private extern void INTERNAL_setDisabledStateColor(ref
Color value);
162 [MethodImpl(MethodImplOptions.InternalCall)]
163 private extern int INTERNAL_get_textHorizontalAlignment();
165 [MethodImpl(MethodImplOptions.InternalCall)]
166 private extern void INTERNAL_set_textHorizontalAlignment(
int value);
168 [MethodImpl(MethodImplOptions.InternalCall)]
169 private extern int INTERNAL_get_textVerticalAlignment();
171 [MethodImpl(MethodImplOptions.InternalCall)]
172 private extern void INTERNAL_set_textVerticalAlignment(
int value);
TextHorizontalAlignment
TextHorizontalAlignment enum
bool interactable
Gets or sets the text input interactability (i.e. disable or enable this text input or get its state)
Texture disabledStateTexture
Returns the texture in the disabled state
Color hoverStateColor
Returns the color in the hover state (when the mouse cursor is above this text input)
TextVerticalAlignment textVerticalAlignment
Get or set text vertical alignment
Font font
Get or set the font
Color disabledStateColor
Returns the color in the disabled state
float fontSize
Get or set the font size
string text
Get or set the text
Texture hoverStateTexture
Returns the texture in the hover state (when the mouse cursor is above this text input)
TextVerticalAlignment
TextVerticalAlignment enum
Color activeStateColor
Returns the color in the active state (when the mouse is clicked and held down on this text input)
Texture normalStateTexture
Returns the texture in the normal state
Texture activeStateTexture
Returns the texture in the active state (when the mouse is clicked and held down on this text input)
TextHorizontalAlignment textHorizontalAlignment
Get or set text horizontal alignment