Search Issue Tracker
Fixed
Fixed in 2021.3.32f1, 2022.3.12f1, 2023.1.18f1, 2023.2.0b15, 2023.3.0a11, 2024.1.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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Add comment