Table of Contents

Class PortalSurface

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

The face of a scene teleporter: a quad in its opening that shows the place it leads to. Both scenes cannot be loaded at once, so the view is a cubemap baked at the destination (PortalViewBaker, kept in Assets/Generated and shipped in a build-only Addressables group), looked up through the quad by view direction in the FishMMO/Portal shader: a window onto the far side with the right perspective for anything past a few metres, a swirl and a glowing rim over it. With no baked view (an editor that has not baked, a destination not yet set) only the glow shows.

public class PortalSurface : MonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
PortalSurface
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.didStart
MonoBehaviour.didAwake
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.GetComponentIndex()
Component.CompareTag(TagHandle)
Component.transform
Component.transformHandle
Component.gameObject
Component.tag
Object.GetEntityId()
Object.MemberwiseClone()
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags

Remarks

Set up in the scene by the cut, the gate tool or the Dashboard's "Bake portal views": the destination id is the teleporter's, and DestinationYaw is the arrival's facing, so stepping through the quad looks the way the traveller will face on arrival. Client only; on the server it does nothing.

Fields

AddressPrefix

Addressables key prefix of a baked view: the destination id follows.

public const string AddressPrefix = "PortalView/"

Field Value

string

Properties

DestinationID

public string DestinationID { get; set; }

Property Value

string

DestinationYaw

public float DestinationYaw { get; set; }

Property Value

float

Methods

AddressOf(string)

The Addressables key of a destination's baked view.

public static string AddressOf(string destination)

Parameters

destination string

Returns

string