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 theportal
along 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 thechild
if it does not cause theportal
to 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 theportal
overflows out of the viewport.