Cannot Call an Enum from Another Script, Reads as Int Despite Correct Classifcation as Unt8

Good news, I actually managed to find the problem very shortly after posting this.

The issue lied with an old file I had forgotten about. I had recreated my GreedyChunk file and renamed it GreedChunks, as I was making edits and wanted to keep the old working version.

I forgot about it, and thus didn’t realize it was throwing an error because it defined “enum class EBlock”, which is exactly what we didn’t want. Because it had such a similar name, I kept thinking my newer file was making the mistake.

Thankfully, once this script was removed from the project, the newer one is working just fine now, so the code posted is actually fully functional, just an oversight on my part.

If you have a similar issue to this, I hope this could possibly point you in the right direction, you never know what you’ve forgotten to account for file wise.