FPortalShift extension

Provides various portal shifting strategies for when a portal overflows out of the viewport.

The returned offset should be in the local coordinate system relative to the child's top left corner (0, 0).

on
  • Never

Static Methods

along(Size view, FPortalChildBox child, FPortalBox portal) Offset

Available on Never, provided by the FPortalShift extension

Shifts the portal along the child's edge if the portal overflows out of the viewport.
flip(Size view, FPortalChildBox child, FPortalBox portal) Offset

Available on Never, provided by the FPortalShift extension

Flips the portal to the opposite side of the child if it does not cause the portal to overflow out of the viewport. Otherwise shifts the portal along the child's edge.
none(Size _, FPortalChildBox child, FPortalBox portal) Offset

Available on Never, provided by the FPortalShift extension

Does not perform any shifting if the portal overflows out of the viewport.