Search Issue Tracker

Won't Fix

Votes

12

Found in

2017.2.0a1

2017.3.0b11

Issue ID

971967

Regression

Yes

[TreeCreator] Selecting rotate node of a nested branch group on a tree throws " NullReferenceException" error

Graphics - General

-

What Happened:
On rotating node of a nested branch group of a tree, the editor throws null reference exception

Steps To Reproduce:
1. 3D Object > Create Tree
2. Tree > Select branch group in tree creation window > Click on "Add Branch" icon
3. Click on the rotation node on the branch, in the scene view.
5. Observe that clicking on brach node rotate icon throws " NullReferenceException" error.

Actual Result:
Selecting the rotation icon shouldn't throw any error.

Expected Result:
Selecting the rotation icon on the branch throws null reference error.

Frequency:
Always

Steps To Reproduce:

1. Create a 3d game object of type tree.
2. Select the branch icon on the inspector.
3. Click on the 'Add Brach' icon.
4. Click on the rotation icon on the branch in the scene view.
5. Observe that clicking on brach rotating icon of a branch on a tree throws " NullReferenceException" error.

Actual Result:
Selecting the rotation icon on the branch throws null reference error.

Expected Result:
Selecting the rotation icon shouldn't throw any error.

Frequency:
Always

Environment:
2017.3.0b11
Occurring on windows & Mac

Working on:
Unity 5.6.3f1, 2017.1.2f1, 2017.1.2p3

Reproducible with:
2017.2.0a1, 2017.2.0f1, 2017.2.0f3, 2017.3.0b11

Stack Trace:
NullReferenceException: Object reference not set to an instance of an object
TreeEditor.TreeEditor.OnSceneGUI () (at /Users/builduser/buildslave/unity/build/Extensions/TreeEditor/TreeEditor/TreeEditor.cs:1076)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.SceneView.CallOnSceneGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:2507)
UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1833)
UnityEditor.SceneView.OnGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1663)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:295)
UnityEditor.HostView.Invoke (System.String methodName) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:288)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:255)

  1. Resolution Note:

    TreeCreator will only be available as a package in GitHub, where Unity developers and users will be able to contribute to its development and maintenance. To support this move, we are suspending bug fixes until the TreeCreator is a package. However, although TreeCreator will not be available directly in the Unity Editor, Unity will continue to support any Assets made with TreeCreator.

Comments (6)

  1. manfredfrisch

    Aug 01, 2021 12:58

    They talk about making the Tree Creator available as a package on GitHub so that the community can maintain it.

    I want to look into fixing this. Is the source code for the Tree Creator Package already available? Didn't find anything on GitHub...

  2. RAMJI_KUMARARAJAN

    Oct 15, 2019 07:13

    Still issue is there. I just checked in the version 2019.2.6f1. Unity is useless man !!!

    I moved to unreal engine and Modern C++ a while ago.

  3. CreartStudio

    May 02, 2019 14:38

    Same problem on ALL version since 2017.3

  4. guepardrex

    Oct 06, 2018 14:11

    Hello
    I have this problem too in the version 2018.2.11
    Someone can help us?

  5. zangad

    Jun 11, 2018 00:33

    Happens to me, too. Exactly as stated in the reproduction steps above. Unity 2018.1. I need to make trees with the editor (cannot use SpeedTree for my project) but cannot make/edit a single tree because of this bug.

  6. csurogdi

    Apr 17, 2018 20:40

    I've got this problem too :-/
    Reinstalled and updated unity, make a brand new project but this problem is permanent.....

    Please help, i want pay for unity but this bug is changed my mind.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.