ursus
12/05/2025, 11:35 PMOffset in the debugger? It's giving me the long, and I only see the x,y components after I evaluate the expression, which is super annoyingromainguy
12/06/2025, 6:57 AMursus
12/06/2025, 10:31 AMursus
12/06/2025, 10:31 AMobject OffsetDebug {
@JvmStatic
fun createOffset(long: Long): String {
val offset = Offset(long)
return "Offset(x=${offset.x}, y=${offset.y})"
}
}
So I had to expose a static java method like this and this is now callable in the renderer and works....but it took a while to figure outromainguy
12/06/2025, 4:54 PMursus
12/06/2025, 4:57 PMromainguy
12/06/2025, 4:58 PMIvan Kochurkin
12/07/2025, 4:27 PMIvan Kochurkin
12/07/2025, 4:32 PMx, y representation because the Offset overloads toStringursus
12/07/2025, 4:33 PMoffset.toString is not ideal, as it rounds up the values for some reason (i.e. small x,y appear as Offset(x=0.0, y=0.0)