Camera
The Camera Object effectively decides what is visible of a Scene2D when switched to Player View
or when the Project is run. The user can control this with its Attributes.
Attributes
Altering a Camera's Position
and Rotation
may change how Objects are displayed in Player View
, cutting off parts of an Object if they fall outside the Camera's bounds. As default, all of these values are set to 0. These can be used to shift the bounds of a Camera.
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F2561100106-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ff6JZovzOqBctA4C1o76u%252Fuploads%252Fgit-blob-eb1cb064ddf833e07f244e9755e4ba969245130e%252Fcamera2dimage120232.gif%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=f8f95afd&sv=1)
The Size
configures the dimensions of the Camera's bounds and can be used to reduce or extend the confines of a Camera. The default is 1920x1080
in the above example, but this can change as it ultimately depends on the size of the Screen that a Scene2D resides in.
Link viewport to screen size
can be toggled when a Camera is in a Scene that belongs to a Screen. When it is switched off, the user can edit the Size
.
Editor View vs. Player View
Before Player View
is enabled, the bounds of the Camera as well as the entire Object are visible in Editor View
. Player View
is highlighted at the top of the image.
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F2561100106-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ff6JZovzOqBctA4C1o76u%252Fuploads%252Fgit-blob-f7ed55b283d11be222d18bc63af7804c5fd80b5a%252Fcamera2dimage220232.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=1079d3d6&sv=1)
Once Player View
is activated, only half of the Rectangle is visible and the boundary lines of the Camera disappear.
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F2561100106-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ff6JZovzOqBctA4C1o76u%252Fuploads%252Fgit-blob-95223c74bd27d64e882dfd3a485ea30017b077dc%252Fcamera2dimage320232.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=4d646978&sv=1)
Player View
gives a preview of what will be shown when the Scene2D is playing.
Render to Texture
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F2561100106-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ff6JZovzOqBctA4C1o76u%252Fuploads%252Fgit-blob-39e1c92c9050fa528b3139f19cbc5c2790c1f3f4%252Fcamera2drendertotexture2.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=e0001129&sv=1)
Enabling Render to Texture
renders the Scene2D from the viewpoint of the Camera into a texture. When enabled, the resulting texture is added to the Asset Database and can be used for all Objects which allow for textures (such as Images). It is removed again when the Attribute is disabled.
This Attribute can also be used to draw multiple Scene2Ds, combine them, or bring them into another Scene2D.
Anti-Aliasing
lets the user choose an anti-aliasing technique which can help improve the appearance of the texture. More information on anti-aliasing can be found here.
Tag
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F2561100106-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ff6JZovzOqBctA4C1o76u%252Fuploads%252Fgit-blob-dc4f375e34ce9bdd2bebc3e93ff34c8680ab55bb%252Fbuttonattstag.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=4d88ad50&sv=1)
This Attribute manages the tags for the Button. See more on tags here.
Last updated