Search Issue Tracker
By Design
Votes
0
Found in
2021.3.36f1
2022.3.21f1
2023.2.14f1
2023.3.0b10
Issue ID
UUM-67124
Regression
No
Tilemap Tiles do not get lit up unless the Light Range is greater than the distance between the position of the Tile before the transformation and the Light Source when the Tile is transformed with Tilemap.SetTransformMatrix method
How to reproduce:
1. Open the “TilemapLightingTest.zip” project
2. Open the “SampleScene”
3. Click on the “Point Light” GameObject in the Hierarchy
4. Enter the Play Mode
5. Increase the “Point Light” Range to 7 (or the distance between the light and the Tilemap Tile)
6. Observe the Game view
Expected results: Tilemap Tile is lit when it is within the range of the “Point Light“ after the Transformation
Actual results: Tilemap Tile is lit only when the range of the “Point Light“ is set to a greater value than the distance between it and the Tile
Reproducible in: 2021.3.36f1, 2022.3.21f1, 2023.2.14f1, 2023.3.0b10
Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested
Add comment
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
Resolution Note:
The TilemapRenderer generally works on the XY plane and has a flat XY bounding box in 3D space. The TilemapRenderer can be culled from 3D lights if there is a large Z difference from the light itself.
Setting a Transform matrix for a set of Tiles does not automatically increase the bounding box for the TilemapRenderer. To help with that, you can make use of the "detectChunkCullingBounds " and "chunkCullingBounds" properties of the TilemapRenderer. You can set the "detectChunkCullingBounds" property to Manual and increase the Z value for the "chunkCullingBounds". This will prevent the 3D lights from culling the TilemapRenderer when rendering the lights.