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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

PostProcessScene attribute

Discussion in 'Editor & General Support' started by andymads, Apr 14, 2015.

  1. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    A couple of things:

    (1) The docs imply that this attribute allows a method to be called when doing a build but it also calls the method when just playing the scene in the editor. Is this a bug?

    I am using EditorApplication.isPlayingOrWillChangePlaymode to know if a build is in progress or not so that my method can have logic to exit early if the scene is just being played.

    Incidentally, is there a way of knowing if a build is in progress via code?

    (2) When doing a build the method can be called twice for one scene. It looks like it's the first scene that gets repeated at the end. I've submitted a bug #689294.
     
  2. ksg97031

    ksg97031

    Joined:
    Jan 11, 2016
    Posts:
    1
    me too