I have 3 scenes in my game:
A Title Scene named: TWLIN1
A Cutscene Scene named: TWLIN2
A Gameplay Scene named : TWLIN3
When I play the game from the 1st scene to the 3rd scene in the editor, the scenes load properly.
However, when I build and run the game, the 2nd and 3rd scene do not load properly.
No assets load and the video for the cutscene doesn't play.
The UI in the game scene does load and the background music loads as well.
I have tried trouble shooting this issue but I have had no luck, what could I do to fix the scene loading in my game build?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
What are your AC/Unity versions, and what platform are you building to?
Is the background music that plays a part of either the 2nd or 3rd scene, suggesting it's loading but not visible?
Are you loading scenes via Build Settings, or via Addressables?
Look for your build's Log file - does it include anything that looks related?
Unity Version = 6000.2.7f2
Adventure Creator Version = V1.84.3
I am building to Web platform.
Yes, the background music that plays is a part of the appropriate scenes. The music and the UI are the only things that load into the scene properly. The 3D assets, and in the case of the cutscene, the video, do not load into the scenes at all.
I am loading the scenes via build settings.
Here are a few of the error messages I received when attempting to run the game in the browser.
--------------------------------------------------
TWL-PRE-ALPHA-BUILD-1.0.framework.js.gz:9 A local EventSystem object was found in the scene. This will override the one created by AC, and may cause problems. A custom EventSystem prefab can be assigned in the Menu Manager.
-> AC debug logger
_JS_Log_Dump @ TWL-PRE-ALPHA-BUILD-1.0.framework.js.gz:9
TWL-PRE-ALPHA-BUILD-1.0.framework.js.gz:9
---------------------------------------------------
Manual synchronization of Unity Application.persistentDataPath via JS_FileSystem_Sync() is deprecated and will be later removed in a future Unity version. The persistent data directory will be automatically synchronized instead on file modification.
Pass
config.autoSyncPersistentDataPath = true; to configuration in createUnityInstance() to opt in to the new behavior.
---------------------------------------------------
index.html:1 Access to video at 'https://github.com/user-attachments/assets/6357d80e-830f-4088-b0bc-0f33edf7277c' from origin 'https://html-classic.itch.zone' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
6357d80e-830f-4088-b0bc-0f33edf7277c:1 Failed to load resource: net::ERR_FAILED
----------------------------------------------------
VM2599:6668 POST https://www.youtube.com/youtubei/v1/log_event?alt=json net::ERR_BLOCKED_BY_CLIENT
send @ VM2599:6668
Pq @ www-embed-player.js:1230
Tq @ www-embed-player.js:1235
jw @ www-embed-player.js:1646
p.sendAndWrite @ www-embed-player.js:1548
iw.sendAndWrite @ www-embed-player.js:1641
e @ www-embed-player.js:1657
(anonymous) @ www-embed-player.js:1665
Promise.then
qv @ www-embed-player.js:1665
$x @ www-embed-player.js:1773
by @ www-embed-player.js:1764
(anonymous) @ www-embed-player.js:1762
Gk @ www-embed-player.js:680
Wx @ www-embed-player.js:1762
c @ www-embed-player.js:1765
(anonymous) @ www-embed-player.js:1767
(anonymous) @ www-embed-player.js:1198
VM2599:6668 POST https://www.youtube.com/youtubei/v1/log_event?alt=json net::ERR_BLOCKED_BY_CLIENT