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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

4.0.0 Mesh Edit events?

Discussion in 'World Building' started by PassivePicasso, Dec 1, 2018.

  1. PassivePicasso

    PassivePicasso

    Joined:
    Sep 17, 2012
    Posts:
    100
    I've been playing with a new idea on how to utilize ProBuilder to build parametric objects. I want to essentially record actions conducted with probuilder so they can be modified replayed later with different values.

    Going down that line of thinking I was looking to see if there were any kind of Events that I could hook into the API in 4.0 but I couldn't find anything.

    Is there any way I would be able to track these actions? Ideally without modifying ProBuilder source doe.
     
  2. kaarrrllll

    kaarrrllll

    Unity Technologies

    Joined:
    Aug 24, 2017
    Posts:
    548
    Yes, in the upcoming API there are callbacks pre and post mesh modification.
     
    awesomedata likes this.
  3. PassivePicasso

    PassivePicasso

    Joined:
    Sep 17, 2012
    Posts:
    100
    Would there be enough information to determine what utility was used, or only that the mesh has changed?

    Is this callback available in the staged 4.0 preview? If so, could I get a nice little tip about where it is so I can play with it? :D
     
  4. awesomedata

    awesomedata

    Joined:
    Oct 8, 2014
    Posts:
    1,419
    Something like which edge/vert/face was modified so that one can get the triangles from it could be useful too.