Skip to content

raylib.SetLoadFileDataCallback

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Set custom file binary data loader: a function(fileName) that returns the file's data (RawData, string, or list of byte values), or null to clear. Refused once sandboxed; not supported on web

Parameters

Parameter Default Value Note
callback null

Return value

None.

Notes

Example

raylib.SetLoadFileDataCallback function(fileName)
    print "Loading binary: " + fileName
    return ""
end function

Clone this wiki locally