- Home /
Question by
nicola_palomba · Apr 14, 2018 at 03:51 PM ·
buildruntimeresources.load
Resources.Load doesn't work at runtime
Hi guys! I'm creating a 2D game and I'm dynamically loading prefabs from with Resources.Load. It works fine in the editor, all the tiles, player, enemies and other elements are being loaded correctly . However, I tried to build the project as a standalone executable for Windows and, when I run the exe file, it doesn't load anything.
I've already searched for solutions, but none worked for me (for example resources are already being loaded without .prefab at the end of the path).
Can you help me, please? :)
EDIT: also noticed that it works if I select "Build and run" when I build it.
Comment