0 votes

How I'm supposed to use the godot_pool_XX_array_write_access structs to pass data from within my C code to godot?
Using the append/insert/set functions is not efficient for large number of elements.

Edit: How to put underscores here?

in Engine by (23 points)
edited by

For adding code here, use backticks, "``".

1 Answer

+1 vote
Best answer

To answer myself, I used godot_pool_byte_array_write to get the struct that I passed to godot_pool_byte_array_write_access_ptr to get a pointer that I can use with memcpy and such.

by (23 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.