Author Topic: Error when on building app  (Read 542 times)

JediNizar

  • Guest
Error when on building app
« on: December 11, 2017, 09:32:10 PM »
Hi
I managed to overcome the last errors I mentioned in the other topic (don't ask me how this was not me who did it but a colleague)
anyway now on building the app we get the following message which crashes the building process:

Destroying object multiple times. Don't use DestroyImmediate on the same object in OnDisable or OnDestroy.
UnityEngine.Object:DestroyImmediate(Object)
XFrameEffect.XFrameManager:DestroyXFrameCamera() (at Assets/XFrame/Scripts/XFrameManager.cs:487)
XFrameEffect.XFrameManager:OnDestroy() (at Assets/XFrame/Scripts/XFrameManager.cs:481)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Destroying object multiple times. Don't use DestroyImmediate on the same object in OnDisable or OnDestroy.
UnityEngine.Object:DestroyImmediate(Object)
XFrameEffect.XFrameManager:DestroyXFrameCamera() (at Assets/XFrame/Scripts/XFrameManager.cs:491)
XFrameEffect.XFrameManager:OnDestroy() (at Assets/XFrame/Scripts/XFrameManager.cs:481)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)


Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 4413
    • View Profile
Re: Error when on building app
« Reply #1 on: December 12, 2017, 04:07:14 AM »
Hi!

Are you using Unity 2017.2 version? Just tested it on a simple scene and it built correctly.

Try closing any scene before building your project.

Regards.