Search Issue Tracker
Fixed
Fixed in 2021.3.32f1, 2022.3.12f1, 2023.1.18f1, 2023.2.0b15, 2023.3.0a11, 7000.0.0a1
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
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Add comment