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.
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!