Skip to content
VMormoris edited this page Oct 30, 2022 · 1 revision

Editor

Green Tea engine comes with a level Editor named CupOfTea that you can use to build your scenes using a UI. The Editor has many panels most of which you can toogle on and off using the View menu on the top left corner.

Editor

Content Browser

The Content Browser panel can be used to manage your assets. The first time you open your Project it will only contain an Empty Folder called Scripts.

  • You can create a New Folder, Script or Animation Asset by Right Clicking on the empty space on the Panel.
  • You can import assets like Textures, Sounds and Fonts by clicking the Import button on the top right corner.
  • The searchbar can be used to filter assets or folders on the current directory.

Content Browser

Console Log

In the Console Log panel you can see messages produce by the Engine as well as your own Scripts.

  • Press the Clear button to empty the list of messages.
  • Use the other buttons to filter the messages by type.
    You can choose between one or more types by simply activating one or more buttons. If none of the buttons are active then all types of messages will be shown on your screen.

Console Log

Scene Hierarchy

Using the Scene Hierarchy panel you can organized your Entities as well as select an Entity. When entity is selected an orange overlay will appear over it on the Viewport panel and you can tweak it's components on the Properties Panel.

Viewport

In the Viewport panel you can see how the entities are layed out on your scene from the perspective of your Editor's camera. When the Viewport is focus you can press Q, W, E, R keys to switch between Guizmo modes. This will help you to select, move, scale or rotate Entities on the fly. You can press the play button at the top to test your game (if you don't have a Primary Camera on your scene nothing will appear).

Note: In order for an Entity to appear on the Viewport and be able to select it. It must have both Transformation Component as well as one of the Renderable components.

Viewport

Properties

In the Properties panel you can tweak the Components of the currently Selected Entity.

  • Double click on the name at the top to change it's name. Press enter to save your changed name.
    Entities' names also might also be refered as Tag.
  • Press the Add button to select a Component that will be added to an Entity.
  • You can delete a Component at any time by pressing the Trash button.
  • Hover over the names of the components to get some feedback on what the actually do.

Clone this wiki locally