A Screen Resize Event will trigger actions based on the size of the canvas. Define multiple sizes by adding breakpoints. This is useful when needing to rearrange your scene to better fit different types of screen sizes like desktop vs. mobile.
Settings for Screen Resize Event
On type, you can define if the breakpoints on the event will be horizontal or vertical.
Breakpoints are defined by pixel values and an operator (
> more than,
< less than, and
- There are 3 presets available (Mobile, Table, Desktop) or you can set your Custom values.
- To add a new breakpoint, use the “Add New Breakpoint” button at the bottom.
- To delete a breakpoint, look for the delete icon that appears on hover.
- To add a new action, use the + icon on the respective breakpoint you want to add an action to.
Here are the different actions you can trigger with the Screen Resize Event:
- Destroy Object
- Switch Camera