A portal is a rectangular opening between two adjacent sectors, through which one sector can be partially seen if looking from another.
- WorldPortal class to edit portals via UnigineScript
Creating a Portal
To create a world portal via UnigineEditor:
- On the Menu bar, choose Create -> World -> Portal
- Place the node in the scene.
Editing a Portal
In the World Portal tab of the Parameters window you can adjust the following parameters of the portal:
|Edit Size||Toggles the editing mode for the world portal node on and off. When enabled, the portal's rectangle sides that can be resized are highlighted with the colored rectangles. To change the size of a side, drag the corresponding rectangle.
|Width||The width of the portal's rectangle, in units.|
|Height||The height of the portal's rectangle, in units.|