Unity Issue Tracker - Tilemap CellToWorld and WordToCell methods return 0 and layoutGrid is returned null when manipulated through Prefab
Closed
UUM-42429
Tilemap CellToWorld and WordToCell methods return 0 and layoutGrid is returned null when manipulated through Prefab
Unity: 2D
As Designed
2023.2.X
2023.1.X
2022.3.X
2021.3.X
The recommendation for using a Prefab would be to call PrefabUtility.LoadPrefabContents and PrefabUtility.UnloadPrefabContents to handle the Prefab, rather than directly accessing the Prefab asset.
How to reproduce:
1. Open the "IN_45762" project
2. Press "Test" -> "TestTilemap"
3. Observe the Console
Expected result: "TestTilemap" has non-zero values and "gridLayout" is true
Actual result: "TestTilemap" values are zero and "gridLayout" is false