Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

ProBuilder 4.0.0 Mesh Edit events?

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

  1. PassivePicasso

    PassivePicasso

    Joined:
    Sep 17, 2012
    Posts:
    46
    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:
    107
    Yes, in the upcoming API there are callbacks pre and post mesh modification.
     
    awesomedata likes this.
  3. PassivePicasso

    PassivePicasso

    Joined:
    Sep 17, 2012
    Posts:
    46
    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:
    670
    Something like which edge/vert/face was modified so that one can get the triangles from it could be useful too.