Skip to content

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

@bluTomer

Description

@bluTomer

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions