Play Centered

by manuq

4

Play Centered

A Godot editor plugin. When running a scene that doesn't have a
camera, it will be displayed centered as in the editor viewport
instead of at the top-left corner.

Motivation

How many times have you seen this while editing a project in Godot?

A quarter of a sprite visible at the top-left corner

When you actually wanted this:

The sprite fully visible centered in the view

It happens often when playing a scene that is meant to be instanciated
from another scene. But sometimes you want to play them in isolation
and you expect to see more-or-less what's in the viewport, not the
bottom-right quarter of it.

Note: Godot has a great debugging tool Project Camera Override in
the editor viewport toolbar. The problem is that it has to be
activated every time, switching back to the editor. This plugin is all
about enabling the camera override automatically if:

  • Is not the main scene.
  • Is not a Control scene.
  • The scene doesn't have a camera.

Demo

Showcase video.

Installation

Install it from the Asset Library.

If you've downloaded this manually, do the following:

  • Ensure you're using Godot 4.2 or above
  • Find the addons folder in your project files, or create it if it doesn't exist yet.
  • Move the folder addons/play_centered to your project's addons folder.
  • Enable Play Centered under Project > Project Settings > Plugins

Licence

Licensed under the MIT license, see LICENSE for more information.

Version

1.0

Engine

4.1

Category

Tools

Download

Version1.0
Download Now

Support

If you need help or have questions about this plugin, please contact the author.

Contact Author