ULTRAKILL
Install

Details

Last Updated
First Uploaded
Downloads
9.8K
Likes
3
Size
50KB
Dependency string
Temporary-ULTRAPORTAL-1.0.0
Dependants

Categories

ULTRAPORTALS

A library for easily creating portals in mods.

Usage

Creating a portal example

var entrancePortal = new PortalTransform(pos: new Vector3(0, 0, 0), euler: Vector3.zero, scale: Vector2.one * 15);
var exitPortal = new PortalTransform(pos: new Vector3(0, 10, 0), euler: Vector3.zero, scale: Vector2.one * 15);
var portalResult = PortalConstructor.MakePortal(new PortalConstructorArgs(entrance: entrancePortal, exit: exitPortal, doubleSided: true, makeGroup: true));

portalResult.portal.entryTravelFlags = PortalTravellerFlags.None;
portalResult.portal.exitTravelFlags = PortalTravellerFlags.None;

Creates a portal where the entrance is at (0, 0, 0) and the exit is (0, 10, 0) where the scale is (15, 15) and disallows any travelling.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.