UnityRenderStreaming icon indicating copy to clipboard operation
UnityRenderStreaming copied to clipboard

Fix: Command Line Argument Handling

Open Migueli2CAT opened this issue 3 months ago • 1 comments

Fix for command line arguments handling

Problem

When running on Awake and passing arguments via the command line, these values are not applied, the default settings are used instead.

Root Cause

The logic inside the SignalingManager’s Awake() function creates a signaling object that is passed to the _Run() function. Because the signaling parameter in _Run() is not null, it prevents the function from creating a new signaling instance after the command-line arguments have been evaluated.

Solution

The creation of the signaling and conf objects has been removed from Awake(), and both are now set to null. By doing this, the signaling object is created inside _Run() using the updated settings that include the values from the command-line arguments.

Migueli2CAT avatar Oct 21 '25 16:10 Migueli2CAT

CLA assistant check
All committers have signed the CLA.

unity-cla-assistant avatar Oct 21 '25 16:10 unity-cla-assistant