Path-Creator icon indicating copy to clipboard operation
Path-Creator copied to clipboard

NullReferenceException

Open Fire-Cube opened this issue 2 years ago • 4 comments

When I create an empty object and add the path creator script, I get the following error messages.

NullReferenceException: Object reference not set to an instance of an object
PathCreation.BezierPath.CalculateBoundsWithTransform (UnityEngine.Transform transform) (at Assets/PathCreator/Core/Runtime/Objects/BezierPath.cs:409)
PathCreationEditor.PathEditor.DrawBezierPathSceneEditor () (at Assets/PathCreator/Core/Editor/PathEditor.cs:433)
PathCreationEditor.PathEditor.OnSceneGUI () (at Assets/PathCreator/Core/Editor/PathEditor.cs:289)
(wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,UnityEditor.Editor)
UnityEditor.SceneView.CallOnSceneGUI () (at <7d481861b3d34328a9633ade22dcedd6>:0)
UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at <7d481861b3d34328a9633ade22dcedd6>:0)
UnityEditor.SceneView.DoOnGUI () (at <7d481861b3d34328a9633ade22dcedd6>:0)
UnityEditor.SceneView.OnSceneGUI () (at <7d481861b3d34328a9633ade22dcedd6>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <107446276b724792a53cd389e03a278b>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
NullReferenceException: Object reference not set to an instance of an object
PathCreationEditor.PathEditor.DrawBezierPathInspector () (at Assets/PathCreator/Core/Editor/PathEditor.cs:119)
PathCreationEditor.PathEditor.OnInspectorGUI () (at Assets/PathCreator/Core/Editor/PathEditor.cs:89)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass62_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <795c477f4b8b45c2b2848ba27f9a227b>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Fire-Cube avatar Aug 23 '22 18:08 Fire-Cube

I completely agree. I'm familiar with Visual Studio, but I don't know how to run this project. I would look for a solution file, but there is none. Please help! Would love to be able to run it.

DiegoQuiros avatar Sep 09 '22 02:09 DiegoQuiros

This tutorial helps, but I still don't know how to run this project: https://www.youtube.com/watch?v=MawL2dQIZ7s

DiegoQuiros avatar Sep 09 '22 03:09 DiegoQuiros

  1. Get Unity 2021.3.9f1 Personal
  2. Download this project to your hard drive
  3. Open Unity and then from the file menu choose "Open Project"
  4. Point it to the directory where you downloaded this project
  5. at the Top of Unity there should be a Play button. Hit it and you get a black window that does digit recognition Screenshot 2022-09-08 204349

DiegoQuiros avatar Sep 09 '22 03:09 DiegoQuiros

Thanks for the reply. I will do that.

Cadris avatar Sep 09 '22 04:09 Cadris