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 theportalalong thechild'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 thechildif it does not cause theportalto overflow out of the viewport. Otherwise shifts the portal along thechild's edge. -
none(
Size _, FPortalChildBox child, FPortalBox portal) → Offset -
Available on Never, provided by the FPortalShift extension
Does not perform any shifting if theportaloverflows out of the viewport.