Skip to content

raylib.TextInsert

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Insert text at a byte position, moving the rest forward. Result is limited to 1023 bytes; use TextInsertAlloc for longer text

Parameters

Parameter Default Value Note
text
insert
position

Return value

Condition Return Value
(always) number

Notes

Example

// Insert "Beautiful " at position 6 in "Hello World"
result = raylib.TextInsert("Hello World", "Beautiful ", 6)
print result  // "Hello Beautiful World"

Clone this wiki locally