- Messages related to the Rendermodule.
Static variables
staticread onlyclear_color:Message<RenderMessageClearColor> = new Message<RenderMessageClearColor>("clear_color")
- Set render clear color.
This is the color that appears on the screen where nothing is rendered, i.e. background.
staticread onlydraw_debug_text:Message<RenderMessageDrawDebugText> = new Message<RenderMessageDrawDebugText>("draw_debug_text")
- Draw a text on the screen.
Draw a text on the screen. This should be used for debugging purposes only.
staticread onlydraw_line:Message<RenderMessageDrawLine> = new Message<RenderMessageDrawLine>("draw_line")
- Draw a line on the screen.
This should mostly be used for debugging purposes.
staticread onlydraw_text:Message<RenderMessageDrawText> = new Message<RenderMessageDrawText>("draw_text")
- Draw a text on the screen.
This should mostly be used for debugging purposes.
staticread onlyresize:Message<RenderMessageResize> = new Message<RenderMessageResize>("resize")
- Resizes the window.
Set the size of the game window. Only works on desktop platforms.
staticread onlyset_view_projection:Message<RenderMessageSetViewProjection> = new Message<RenderMessageSetViewProjection>("set_view_projection")
- The camera component that has camera focus will sent set_view_projection messages to the @render socket.
staticread onlyuse_camera_projection:Message<Void> = new Message<Void>("use_camera_projection")
- Suitable for 3D games. Enables the perspective projection provided from a camera component .
staticread onlyuse_fixed_fit_projection:Message<RenderMessageUseFixedFitProjection> = new Message<RenderMessageUseFixedFitProjection>("use_fixed_fit_projection")
- The fixed fit projection keeps the aspect ratio and shows more of the game when the window resizes.
staticread onlyuse_fixed_projection:Message<RenderMessageUseFixedProjection> = new Message<RenderMessageUseFixedProjection>("use_fixed_projection")
- The fixed projection keeps the aspect ratio and has a zoom to show more or less of the game.
staticread onlyuse_stretch_projection:Message<RenderMessageUseStretchProjection> = new Message<RenderMessageUseStretchProjection>("use_stretch_projection")
- The stretch projection stretches the view when the window resizes.
staticread onlywindow_resized:Message<RenderMessageWindowResized> = new Message<RenderMessageWindowResized>("window_resized")
- Reports a window size change.
Reports a change in window size. This is initiated on window resize on desktop or by orientation changes on mobile devices.