exdev / ex2d

Documentation, runtime scripts and others of ex2D
www.ex-dev.com/ex2d
43 stars 9 forks source link

Can't save scene on Unity 4.6.1 when using ex2d #59

Open bluTomer opened 9 years ago

bluTomer commented 9 years ago

After updating the project to Unity 4.6.1 we cannot save scenes/project/prefabs The error received as such:

NullReferenceException: Object reference not set to an instance of an object UnityEditor.AssetModificationProcessorInternal.CheckArguments (System.Object[] args, System.Reflection.MethodInfo method) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/AssetModificationProcessor.cs:61) UnityEditor.AssetModificationProcessorInternal.OnWillSaveAssets (System.String[] assets, System.String[]& assetsThatShouldBeSaved, System.String[]& assetsThatShouldBeReverted, Int32 explicitlySaveScene) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/AssetModificationProcessor.cs:146)

After examination and looking online I discovered that Unity changed the way OnWillSaveAssets works, and now it returns a string[] instead of void/ return null. The relevant function in the plugin should be updated to fit the change in unity documentation.

More info is found here: http://forum.unity3d.com/threads/4-6-1-broke-prefab-saving-and-model-scaling.285129/

Thank you!

MichaelPizik commented 9 years ago

We also have a strong interest in solving this issue.