I am using AC 1.72.4 and Unity 2019.4.6f1.
I am facing a problem that, when starting the game build, there is roughly 1/10 chances that the OnStart cutscene in the first scene of the game not running.
May I ask what would possibly block the cutscene from running? Like, would any script inside Start() or Awake() run sooner than the cutscene and block it with any errors?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Is this reproduceable within the Editor?
AC's startup process is a single-entry - the initialisation of Menus, Players, etc all occur in a strict order. When you mention Start/Awake functions, are you referring to custom scripts that are in the scene?
Does the rest of the game begin correctly, e.g. showing the UI and the default Player?
The "ActionList on start game" asset is called just before OnStart - do you have such an asset assigned?
Check the Log file when this occurs for potential error messages.
I found the reason.
One script is trying to read a variable but it has to be assigned by reading a Steam setting. I forgot to set a default value so sometimes it is not reading the Steam setting before it was assigned. The issue was easily fixed by assigning it a default value inside Awake().