screenToBaseSurface method
- required Offset screen,
Converts a screen coordinate to a location on the base surface in scene coordinates, considering only the scene's base surface and ignoring other scene content.
To call this method, assign a scene to the scene view, ensure that it is loaded and the draw status is DrawStatus.completed.
Parameters:
screen— The screen coordinate, in pixels. The coordinate of the top left corner of the screen is 0,0.
Return Value: A point object. If an error occurs, returns null.