I've made a better portal switching script for Unity to do 5-D space with.
I believe it is compatible with the trilogy now.
https://forum.unity.com/threads/sharing ... ct.986004/
The Unity forum post contains the script and shaders with instructions on how to use it.
I developed this as an easy way to make Marathon maps with 5-D space in Unity.