Add objects into your game screens
UI Objects are interactive objects you add in your Game Screens. You cannot add UI Objects in your Game World. All UI Objects are also Game Objects, so all the manipulations that can be performed on Game Objects work the same for UI Objects.
The Button Object is currently the only UI Object provided by the Engine. Button Objects are clickable objects. They detect automatically when the mouse Enter or Leave their bounding box.
Button Objects are added using Sprites. If you hold SHIFT and click on a Sprite-Button, a Button Object will be added onto the canvas. A Button Object will have a lower opacity compare to the original sprite, that’s because the Engine adds a special effect to buttons. When you don’t hover the mouse over the button it will have a lower opacity and when the mouse is placed on the button, it will regain its full opacity creating a highlighting effect.
Since Button Objects are made of Sprites, any actions that can be performed on Sprite Objects can also be performed on Button Objects (change color, flip, etc.)
Add Button Object : Hold SHIFT and click on a Sprite Button.
While you cannot add UI Objects in the Game World, there are certain Game Objects that you can add in your Game Screens. In general, if an object does not contain any Mesh or Physics you can add it into Game Screens. The following list shows none UI Objects you can add in your Game Screens
- Sprite Objects
- Animation Objects
- Text Objects