Search Unity

ProBuilder Need to Merge Two Meshes in Code

Discussion in 'World Building' started by Ritchie-J, Feb 26, 2019.

  1. Ritchie-J

    Ritchie-J

    Joined:
    Feb 26, 2018
    Posts:
    26
    As per title I would like to do this directly in C#.
    The manual editor equivalent appears to use a combination of the MergeObjects.cs and InternalMeshUtility.cs files but I can’t find a direct API equivalent in the Unity Docs UnityEngine.Probuilder.MeshOperations section.

    Any help/links would be appreciated.
     
  2. kaarrrllll

    kaarrrllll

    Unity Technologies

    Joined:
    Aug 24, 2017
    Posts:
    161
    That is private API at the moment, but I don't see any reason that it needs to be. I will expose it for the next patch update.
     
    Gruguir and joshcamas like this.
  3. Ritchie-J

    Ritchie-J

    Joined:
    Feb 26, 2018
    Posts:
    26
    Thanks! That would be a great help
     
  4. kaarrrllll

    kaarrrllll

    Unity Technologies

    Joined:
    Aug 24, 2017
    Posts:
    161
  5. Ritchie-J

    Ritchie-J

    Joined:
    Feb 26, 2018
    Posts:
    26
    Great! I'm working on a procedural generation project for architecture so will be using it shortly.
     
  6. qq294716498

    qq294716498

    Joined:
    Jun 20, 2017
    Posts:
    2