Search Issue Tracker

By Design

Votes

0

Found in

2022.3.67f1

6000.0.59f1

6000.2.7f1

6000.3.0b4

6000.4.0a1

6000.5.0a1

Issue ID

UUM-120731

Regression

No

Lightmapping delegate not called for first scene when baking via "-executeMethod" on editor launch

-

Reproduction steps:
1. Open the “launch.bat” script and edit the necessary variables
2. Open the project by launching the “launch.bat” script
3. Observe the Console window and that “04 - Inside lightmapping delegate” is missing for the first scene’s bake
4. Clear the Console
5. Start the same bake (Engine Support > Start Bake)
6. Observe the Console window and note all messages appear in order, including “04 - Inside lightmapping delegate”

Expected result: Baking via {{-executeMethod}} and via the menu item both call the lightmapping delegate, producing identical logs
Actual result: When launched with {{-executeMethod}}, the lightmapping delegate is not called for the first scene’s bake

Reproducible with: 6000.0.59f1, 6000.2.7f1, 6000.3.0b4, 6000.4.0a1

Reproducible on: Windows 11
Not reproducible on: Not tested on other platforms

Notes:
- The issue no longer reproduces on macOS since 6000.0.58f1 and 6000.2.5f1 versions. Fixed In commit is mentioned in the comments.
- Issue does not reproduce with BiRP
- On some machines the reproduction is not always reliable, so if needed, repeat steps 2-3 again

  1. Resolution Note:

    The TestDel() delegate will not be called if URP initialization calls Lightmapping.SetDelegate() after your call in SetupFalloff(). This is expected behavior. The recommended approach is to wait for URP to have finished creation and initialization. This can be done using RenderPipelineManager.activeRenderPipelineCreated.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.