focusOn(displayObject)
Move the camera focus on a display object instantly.
Parameters
Name | Type | Description |
---|---|---|
displayObject | any | The display object to focus the camera on. Must have visible x/y properties. |
- Source code: core/Camera.js (Line 335)
Please login to continue.