0 votes

Whenever I export my game, some things break for no reason.
- using load() to load an image results in null being returned
- Random holes in CSG shapes that have CSG children
- Some nodes crash when instancing children from load(path).instance()
- And probably some more that I haven't found yet

Why is this happening? Is there any way to avoid this?

Godot version 3.1.1

Exporting game in release mode, haven't tried debug mode.

in Engine by (157 points)
edited by

1 Answer

0 votes

Instead of load() you're supposed to use preload() cause load() is only meant to load things outside your project like an image that hasn't been imported for a player avatar, as for the csgmesh I dunno a lot about 3d so this is all I can do to help

by (76 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.