Path-Creator
Path-Creator copied to clipboard
NullReferenceException
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&)
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.
This tutorial helps, but I still don't know how to run this project: https://www.youtube.com/watch?v=MawL2dQIZ7s
- Get Unity 2021.3.9f1 Personal
- Download this project to your hard drive
- Open Unity and then from the file menu choose "Open Project"
- Point it to the directory where you downloaded this project
- at the Top of Unity there should be a Play button. Hit it and you get a black window that does digit recognition
Thanks for the reply. I will do that.