I have an easy way to do 5D space in Unity using the stencil buffer.
5-D space map in Unity.
https://youtu.be/oZgejqIr7o8
The map is in 7 pieces with 24 portals.
This is the test map
https://youtu.be/ew8J0bJGYi4
If you want to know how 5D space in Unity works then go to this.
https://forum.unity.com/threads/sharing ... ct.986004/
Its for anyone trying to do a Marathon remake project in Unity.