DrawingImmediate.OutlinedText
Draws outlined text during the current paint callback.
Must run inside a GetPaint signal callback. This returns no retained object; redraw on every paint and disconnect the callback to stop drawing.
DrawingImmediate.OutlinedText(position: Vector2, font: number, size: number, color: Color3, opacity: number, outlineColor: Color3, outlineOpacity: number, text: string, center: boolean?): ()Parameters
| Parameter | Type | Description |
|---|---|---|
position | Vector2 | Text position. |
font | number | Drawing.Fonts ID, clamped to 0–3. |
size | number | Font size in pixels. |
color | Color3 | Text color. |
opacity | number | 0 is invisible; 1 is opaque. Values are clamped. |
outlineColor | Color3 | Outline color. |
outlineOpacity | number | Outline alpha, multiplied with opacity. 0 is invisible; 1 is opaque. Values are clamped. |
text | string | Displayed text. |
center | boolean? | Center horizontally; defaults to false. |
Errors: Calling outside a paint callback or supplying incompatible argument types raises an error.
