Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

OnPreprocessBuild issue

Discussion in '2017.1 Beta' started by hippocoder, Apr 23, 2017.

  1. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    https://docs.unity3d.com/2017.1/Doc...Build.IPreprocessBuild.OnPreprocessBuild.html

    Firstly, the docs are incorrect in the example - CallbackOrder has incorrect case.

    Next, I'm not getting a callback for hitting play in the editor. I absolutely need to do some editor side stuff before the scenes are processed during play or build. It should also fire when I press play as the editor does make a build then.

    As a workaround I do my build processing with scene callbacks instead but I'm hoping this is just a silly oversight? Can it be improved?
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    Interesting find. Thanks for sharing hippocoder. That could explain a very strange anomaly I have been seeing in our project.
    Need to double check that.