0 votes

I'm looping through pixels in a image and storing the pixel info in a Color[] in C#. The array is initialized for the full image, like this: new Color[(int)viewport.x*(int)viewport.y];

The code works fine in C# but the exported HTML/JS code gives me a error:

System.IndexOutOfRangeException: Index was outside the bounds of the array.

This occurs when checking the element at index 40000..so there's some kind of limit in the JS version of the engine that the C# one doesn't have?

edit: I managed to get my array size down and now the export works, but still curious about this

Godot version 3.5.1
in Engine by (17 points)
edited by

Please log in or register to answer this question.

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.