Using Legacy 2D nodes
- Last UpdatedDec 06, 2023
- 1 minute read
This section has information and examples to support the creation of 2D interfaces.
-
Almost every project contains one or more 2D interfaces.
-
Currently, there are no graphical tools to build these interfaces, which makes this a scripting activity.
The 2D interfaces are always displayed in overlay over the 3D scene and they intercept user interaction (touch or mouse events) before the underlaying scene objects.
Note: You can only show the 2D interfaces defined inside a Context node or the Global node.
Node classes
All the four node types for 2D interfaces share a set of common attributes that are used to define the visualization state, the position, the scaling, and other visual aspects.
The node classes available to build 2D interfaces.
|
Class |
Description |
|---|---|
|
Rect |
Shows the content inside a rectangular area. The content may be a color or an image. |
|
Button |
Shows a button. For more details on how to create and use buttons, see Configuring Legacy 2D Buttons. |
|
Text |
Displays text, even dynamically changing text. |
|
Layer |
A layer is a container node without visualization. It can be used to group a set of nodes and interact with their properties with a single statement. |