return parent.getChildren().indexOf(this, true);\r
}\r
\r
+ /** Transforms the specified point in screen coordinates to the actor's local coordinate system. */\r
+ public Vector2 screenToLocalCoordinates (Vector2 screenCoords) {\r
+ Stage stage = getStage();\r
+ if (stage == null) return screenCoords;\r
+ return stageToLocalCoordinates(stage.screenToStageCoordinates(screenCoords));\r
+ }\r
+\r
/** Transforms the specified point in the stage's coordinates to the actor's local coordinate system. */\r
public Vector2 stageToLocalCoordinates (Vector2 stageCoords) {\r
if (parent == null) return stageCoords;\r