Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Converting Incomplete Game from Unreal (C++/Blueprint Hybrid) to Unity (C#)

Discussion in 'Editor & General Support' started by WorldSeed3000, Dec 15, 2020.

  1. WorldSeed3000

    WorldSeed3000

    Joined:
    Dec 14, 2020
    Posts:
    5
    Hey all,
    I have a partially-built game in Unreal Engine and I want to convert it to Unity. After spending so much time programming my game, I would rather not have to rewrite the entire game again.

    Question 1 of 2: Is there a tool to completely/partially convert my C++/blueprints hybrid into C# Unity code?
    Question 2 of 2: If I have to rewrite my C++/blueprints hybrid manually, what is the process that I should follow in order to save as much time as possible?

    What I Have Found:
    -- 2016, Stackexchange Must convert the game by rewriting it. No advice for converting/expediting the process.
    -- 2016, Reddit When converting in the other direction (Unity to Unreal), you must convert the game by rewriting it. No advice for converting/expediting the process.
    -- 2018, Unity+Video Game Developers Advertises Unity Enterprise Support (Minimum $2,000/month) for converting to Unity. No advice for converting/expediting the process.
    -- 2018, GameDev.Net Has asset conversion advice. No advice for converting the C++ half of the Unreal project. Has a confusing/potentially nonsensical explanation for how to convert Unreal blueprints to C#. ("Unreal's Blueprints is just classes so in Unity make Mono classes for them and translate. Use components to fill gaps.") No advice for expediting the conversion process.

    Thank you for your help!
     
  2. oldhighscore

    oldhighscore

    Joined:
    Nov 28, 2020
    Posts:
    79
    There is no auto convert and I recommend you simply go through the c++ -> c# syntax conversion yourself as any system that could auto-generate would probably not be ideal anyways. Secondly the APIs are entirely different so you will need to be accustomed to what the Unity equivalents are.

    Copy/paste, fix compiler errors, find API equivalents. Some things will just be done differently anyways, which means you might have to completely rewrite something from scratch. To save time, start by working on smaller modules of code, test that to make sure it works properly and then move onto the next smaller module. Trying to do everything at once will turn out to be a nightmare. Pick your most important features that make your game unique / fun and deprioritize the rest as you might not need everything verbatim.
     
    Joe-Censored likes this.
  3. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    No
    Unreal and Unity are very different animals. Rather than trying to directly convert your scripts, I'd suggest redesigning the game specifically for Unity using your original project as a guide instead of copying it over verbatim.
     
    oldhighscore likes this.
  4. WorldSeed3000

    WorldSeed3000

    Joined:
    Dec 14, 2020
    Posts:
    5
    oldhighscore likes this.