Search Issue Tracker
In Progress
Fixed in 2021.3.32f1, 2022.3.12f1, 2023.1.18f1, 2023.2.0b15, 2023.3.0a11
Fix In Review for 2024.1.X
Votes
0
Found in
2021.2.19f1
2021.3.5f1
2022.2.0a17
2023.1.0a1
2023.2.0a1
2023.3.0a3
Issue ID
UUM-2731
Regression
No
Light-related editor-only APIs are not clearly marked as such, confusing users
Reproduction steps:
1. Open the attached project "ZSerializer.zip"
2. In File > Build Settings make sure that "ZSerializer/Samples/2 - Scene Groups/House/Scenes/Main Menu", "ZSerializer/Samples/2 - Scene Groups/House/Scenes/Bedroom", "ZSerializer/Samples/2 - Scene Groups/House/Scenes/Kitchen" Scenes are added in Scenes in Build
3. Build
4. Observe the Console
Expected result: Build is successful
Actual result: Build fails with 21 errors
Reproducible with: 2021.2.14f1, 2022.1.0b10, 2022.2.0a5
Could not test with: 2019.4.36f1, 2020.3.30f1 - Project breaks after downgrade
Errors:
- 'Light' does not contain a definition for 'shadowAngle' and no accessible extension method 'shadowAngle' accepting a first argument of type 'Light' could be found (are you missing a using directive or an assembly reference?)
- 'LightProbeGroup' does not contain a definition for 'dering' and no accessible extension method 'dering' accepting a first argument of type 'LightProbeGroup' could be found (are you missing a using directive or an assembly reference?)
- 'MeshRenderer' does not contain a definition for 'scaleInLightmap' and no accessible extension method 'scaleInLightmap' accepting a first argument of type 'MeshRenderer' could be found (are you missing a using directive or an assembly reference?)
- Property or indexer 'LightProbeGroup.probePositions' cannot be assigned to -- it is read only
- 'Terrain' does not contain a definition for 'deringLightProbesForTrees' and no accessible extension method 'deringLightProbesForTrees' accepting a first argument of type 'Terrain' could be found (are you missing a using directive or an assembly reference?)
Notes:
- Issue is not reproducible if building for a second time the same project
- Issue is not reproducible if entire code in script "UnityComponentZSerializers.cs" is commented
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on AudioUtil_CUSTOM_HasAudioCallback when entering PlayMode while the GameObject's Properties Inspector window is in Debug mode
- Tilemap Collider 2D is not updating the Collider shapes when removing Tiles on the Tilemap component
- Inspector with the scrollbar is unusable when Material properties are edited and the scene is saved
- The Rendering Profiler module statistics are zero when Application.targetFrameRate is set
- The Editor becomes unresponsive and memory allocation errors are spammed in the Console when Generating Lightning
Add comment