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

Question Is there a way to edit terain in game without the Unity Engine?

Discussion in 'World Building' started by Deleted User, Jun 21, 2023.

  1. Deleted User

    Deleted User

    Guest

    I was originally thinking of making a building system for flat surfaces, but that would get so dull after a while- plus, the user may want to raise or lower terrain. Is there anything I can use to edit the terrain without using Unity Engine?
     
  2. NanushTol

    NanushTol

    Joined:
    Jan 9, 2018
    Posts:
    121
    The terrain data that holds the splatmaps, height and other details can be edited at runtime, you just need to roll out your own painting/editing sulotion or find an asset that fits your needs
     
  3. Deleted User

    Deleted User

    Guest

    Isn't that part of UnityEngine.TerrainModule? I need to do this without the engine- in a game as an executable file.
     
  4. NanushTol

    NanushTol

    Joined:
    Jan 9, 2018
    Posts:
    121
    the "Engine" is what is running in your exe file when you build a Unity project, so you can use this code at run-time in a build.
    It sounds like you are confusing the UnityEditor namespace, which cannot run in a build (exe file) and only works in the Unity editor.

    The terrain data and system works in a build and you can modify the terrain data and update a terrain at run-time.
     
  5. Deleted User

    Deleted User

    Guest

    Good to know! I'm interested, but I can find nothing on it. You know of any tuts?
     
  6. NanushTol

    NanushTol

    Joined:
    Jan 9, 2018
    Posts:
    121
    I dont :/
    I use the documentaion, and lots of expirimentation, and googling specific questions/topic sometimes yield good stuff
     
  7. wyattt_

    wyattt_

    Unity Technologies

    Joined:
    May 9, 2018
    Posts:
    422
    NanushTol and Deleted User like this.
  8. wyattt_

    wyattt_

    Unity Technologies

    Joined:
    May 9, 2018
    Posts:
    422
    My suggestion would be to download the Terrain Tools package and look at the code we have in the Editor paint tools. Most of the actual GPU work in those files can be done at runtime
     
  9. Deleted User

    Deleted User

    Guest

    Will look into it! Thanks.Perhaps there would be a Unity Learn tut on this in the future- for intermediate to advanced users?
     
    wyattt_ likes this.
  10. wyattt_

    wyattt_

    Unity Technologies

    Joined:
    May 9, 2018
    Posts:
    422
    I'll forward the suggestion!