Summary
Instantiate a portal through ASL to ensure it is created for all clients.
Syntax
public Portal MakePortal(Vector3 position, Vector3 forward, Vector3 up, Portal.ViewType vType = VIRTUAL, string portalPrefab = "Portal")
Parameters
| Name |
Type |
Description |
| position |
Vector3 |
Portal position in world space. |
| forward |
Vector3 |
Portal front-facing direction in world space. |
| up |
Vector3 |
Portal up direction in world space. |
| vType |
Portal.ViewType |
Portal view type, see Portal.ViewType. |
| portalPrefab |
string |
Prefab to be used for portal instantiation.
The prefab should include a component for a Portal, or Portal extension, script. |
Return Value
| Type |
Description |
| Portal |
Instantiated portal. |