Search Unity

Question Can't build more than once per Unity Version due to prefab error

Discussion in 'Prefabs' started by YOSSI2010, Apr 14, 2021.

  1. YOSSI2010

    YOSSI2010

    Joined:
    Dec 26, 2016
    Posts:
    20
    Hello, I am trying to iterate with my game builds however I can't build more than once.
    I get these errors:

    Error removing component when merging Prefab changes: Can't remove Camera because HDAdditionalCameraData (Script) depends on it
    UnityEngine.GUIUtility: ProcessEvent (int,intptr,bool&)

    Error building Player: Error removing component when merging Prefab changes: Can't remove Camera because HDAdditionalCameraData (Script) depends on it

    I have to upgrade the unity editor or clear EVERYTHING, both makes my build time Exceed 2 Hours (Compiling shader variants for 2 hours), Before that problem, the first builds took an hour while consecutive builds took less than 1 minute.

    What causes these kind of errors? Why does it only happen on the second build?
     
  2. radiantboy

    radiantboy

    Joined:
    Nov 21, 2012
    Posts:
    1,633
    Hey did you ever fix this? my build failign with it too, finding it hard to pin point where the code for it is.
     
  3. YOSSI2010

    YOSSI2010

    Joined:
    Dec 26, 2016
    Posts:
    20
    I think I changed to IL2CPP and back to Mono.
     
    radiantboy likes this.