I don't think that porting to an external engine is forbidden, as long as the original licenses are honored. The project you are undertaking is very interesting and quite substantial in size and work involved, so good luck with it and, if you have questions, feel free to ask.
I have seen that Unity uses C# for its API, are you planning to convert the entire project to C# or only parts that would interface directly with the engine?