0
Fixed

Console Error on Setup Trees Root button

Aaron Brown 8 years ago updated 8 years ago 1

Out of seemingly nowhere, the "Setup Trees Root" button in the manager is now generating a console error, and its happening on all versions of Unity. I know this button was working file, so I am amazed to see it now generating an error, even on older versions of Unity.


A fix is being submitted to the Asset store, however it may take up to a week to appear there. For those of you who may be encoutering this error and want a fix immediately, follow the steps below to fix this error yourself.


Steps:


1) Double click the error in the console. It should take you to the line of code where the error is occuring, which will look like this:


if (Application.isPlaying == false && EnableUndo.boolValue == true)

2) Place the following code directly ABOVE that line:


EnableUndo = serializedObject.FindProperty("EnableUndo");                
serializedObject.ApplyModifiedProperties();

Once done, your code should look like this:


EnableUndo = serializedObject.FindProperty("EnableUndo");
serializedObject.ApplyModifiedProperties();

if (Application.isPlaying == false && EnableUndo.boolValue == true)
{
...
}

And now the error should go away.


NOTE: This error will be fixed in version 0.74