From 9d5fe3a35c1f115c0777df5e6eaae787ab72c78e Mon Sep 17 00:00:00 2001 From: Almas Baimagambetov Date: Sat, 9 Jul 2022 17:58:16 +0100 Subject: [PATCH] feat: allow access to viewport camera entity via public API, closes #1168 --- fxgl/src/main/kotlin/com/almasb/fxgl/app/scene/Viewport.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fxgl/src/main/kotlin/com/almasb/fxgl/app/scene/Viewport.kt b/fxgl/src/main/kotlin/com/almasb/fxgl/app/scene/Viewport.kt index 201fb5e034..85a3d40de2 100644 --- a/fxgl/src/main/kotlin/com/almasb/fxgl/app/scene/Viewport.kt +++ b/fxgl/src/main/kotlin/com/almasb/fxgl/app/scene/Viewport.kt @@ -123,7 +123,7 @@ class Viewport * This is only used for visual effects and acts like a viewport overlay. * Its x and y follow the actual x and y of viewport. */ - internal val camera = Entity() + val camera = Entity() /** * Binds the viewport to entity so that it follows the given entity.