Table of Contents

Class PortalViewBehaviour

Namespace
GrindFest
Assembly
GrindFest.dll

Renders a see-through portal effect on a Moon Gate. Creates a secondary camera at the destination, renders to a RenderTexture, and projects it onto a wide fan/cone mesh extending from the gate opening toward the hero. The fan direction tracks the hero's position for parallax.

public class PortalViewBehaviour : MonoBehaviour
Inheritance
object
PortalViewBehaviour

Fields

AlwaysShow
ApexForwardOffset
DestinationGateTransform
DissolveEdge
DissolveScale
DissolveSpeed
FanGroundOffset
FanHeight
FanLength
FanRings
FanSegments
FanSpreadAngle
MinApexDistance
RenderDistance
SurfaceCenter
SurfaceSize
TextureHeight
TextureWidth

Methods

NotifyPortalCreated(Transform)
NotifyPortalDestroyed()
SetPortalActive(bool)