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
- Unity Package Manager Events Not Triggered When Changing Registry
- "DateTime.Now" in the UK timezone does not adjust when the British Summer Time is active
- "Unsupported source texture format (7) in ComputeNextMipLevel" error is shown and the texture atlas is corrupted when the texture format "RGB Compressed ETC2 4bits" is selected
- The label that uses data binding is no longer updated at runtime when `INotifyBindablePropertyChanged` reloads updates of the VisualTreeAsset in UIDocument
- HDRP Graphics "High Quality Line Rendering" is missing a documentation link
Add comment