Click or drag to resize

UI Editor

Modeling ToolsManual / Content Creation / UI EditorFlow Graph Editor

UI Editor

Contents
Overview

UI editor is designed for configuring user interface elements of a project. The editor could be used to create windows, forms, HUD screens and UI controls. You can script controls same way as another components in the editor.

Screenshot999999454.png
Creating UI controls

New UI control can be created as a separate resource or inside an existing object. Read more about creating resources.

Screenshot999999455.png

When creating a resource, one should select the control that will be root. For example, it could be Window or empty Control. After creation a canvas for editing will appear.

Screenshot999999456.png
Editing UI controls

UI editor works in the same way as any other NeoAxis editors. Simplest way to create a control is to drag & drop those from Resources Window.

Screenshot999999457 2.png

Nested controls can be created in the same way.

Screenshot999999458.png

Controls can be selected via mouse, it's settings can be adjusted in the Settings Window.

Screenshot999999460.png

Images and scene files is also supports dropping to the canvas.

Screenshot999999999999999999427 2.png
Ribbon tab

When the scene editor is activated, 'UI Editor' tab appears in the Ribbon. The tab has additional tools for editing.

Screenshot999999999999999999423 2.png
Name Description
Screenshot999999155 4.png
Align selected objects positions along both axes. The step of alignment can be configured in Project Settings.
Screenshot999999155 5.png
Align selected objects positions along X axis.
Screenshot999999155 6.png
Align selected objects positions along Y axis.
Screenshot999999999999999999430 2.png
Sets the horizontal left alignment for the selected controls.
Screenshot999999999999999999430 3.png
Sets the horizontal center alignment for the selected controls.
Screenshot999999999999999999430 4.png
Sets the horizontal right alignment for the selected controls.
Screenshot999999999999999999423 3.png
Sets the horizontal stretch alignment for the selected controls.
Screenshot999999999999999999430 5.png
Sets the vertical top alignment for the selected controls.
Screenshot999999999999999999430 6.png
Sets the vertical center alignment for the selected controls.
Screenshot999999999999999999430 7.png
Sets the vertical right alignment for the selected controls.
Screenshot999999999999999999423 4.png
Sets the vertical stretch alignment for the selected controls.
UI Style

Control's appearance could be customized with UI Style object. Style can be applied both to a separate control and to a whole hierarchy.

In order to set a style, one should select control and Reference button of Style property.

Screenshot999999461 2.png

Select desired style in appeared window. The engine has Simple.uistyle, as an example, which can be found at Assets\Base\UI\Styles.

Screenshot999999462.png

Final result:

Screenshot999999463.png
UI control as a head-up display

Scene supports attachment of UI control as a head-up display (HUD).

To do so, one should open a scene, select scene object, and set UI Screen property. An example can be found in the Assets\_Tests folder, _TestSceneUI.scene and _TestSceneUI_Screen.ui files.

Screenshot999999464 2.png

Result in the Player:

Screenshot999999465.png
See also
Modeling ToolsFlow Graph Editor