Search Unity

Question What is difference between PostProcessBuildAttribute and IPostprocessBuildWithReport ?

Discussion in 'Testing & Automation' started by Thaina, Jan 20, 2020.

  1. Thaina

    Thaina

    Joined:
    Jul 13, 2012
    Posts:
    1,167
    It seem like it very similar and could be replace each other. Which is better and why we have both? Is one would be deprecated sometimes later?
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    The PostProcessBuildAttribute exists for years now. It is not so easy to use as you don't get the auto-completion from your IDE (what sort of method should you create to receive the callback?)

    The interface is the more "modern" approach and is IMHO simpler to use as you automatically get exactly what you need to implement from the IDE.
     
    Thaina likes this.
  3. Thaina

    Thaina

    Joined:
    Jul 13, 2012
    Posts:
    1,167
    Thank you. I was expect that it should be like your explanation but I can't find the evidence myself

    I think unity should put deprecate on that attribute so people know it should be changed