Search Unity

Error NullReferenceException: Object reference not set to an instance of an object

Discussion in 'Visual Scripting' started by Kali_Billi, Apr 19, 2022.

  1. Kali_Billi

    Kali_Billi

    Joined:
    Apr 19, 2022
    Posts:
    1
    Hi, I am new to Unity 3d and game making.. not a programmer.. going to use Bolt.. After Downloading and Installing Unity 3d and downloading Bolt from Asset store.. tried to install it and get this error..

    1)
    Missing unit options.
    Create them with 'Tools > Bolt > Unit Options Wizard...'.
    UnityEngine.Debug:LogWarning (object)
    Bolt.UnitBase:Load ()
    Bolt.UnitBase:AutoLoad ()
    System.Reflection.MethodBase:Invoke (object,object[])
    Ludiq.BackgroundWorker/<>c__DisplayClass0_0:<.cctor>b__3 ()
    Ludiq.BackgroundWorker:Work ()
    System.Threading.ThreadHelper:ThreadStart ()



    2)
    NullReferenceException: Object reference not set to an instance of an object
    Ludiq.Icons.GetScriptTypeIcon (System.String scriptName) (at <af5e15b3589540ac94baeb6e74576eac>:0)
    Ludiq.Icons.GetCustomTypeIcon (System.Type type, System.Boolean inherit) (at <af5e15b3589540ac94baeb6e74576eac>:0)
    Ludiq.Icons.Type (System.Type type) (at <af5e15b3589540ac94baeb6e74576eac>:0)
    Ludiq.Icons.Icon (System.Type type) (at <af5e15b3589540ac94baeb6e74576eac>:0)
    Bolt.LiteralDescriptor.DefinedIcon () (at <ed846bfb09c14080abb024b81e14cfae>:0)
    Bolt.UnitDescriptor`1[TUnit].Icon () (at <ed846bfb09c14080abb024b81e14cfae>:0)
    Bolt.UnitOption`1[TUnit].Icon () (at <ed846bfb09c14080abb024b81e14cfae>:0)
    Bolt.LiteralOption.Icon () (at <ed846bfb09c14080abb024b81e14cfae>:0)
    Bolt.UnitOption`1[TUnit].<FillFromUnit>b__28_0 () (at <ed846bfb09c14080abb024b81e14cfae>:0)
    Ludiq.UnityAPI.Async (System.Action action) (at <af5e15b3589540ac94baeb6e74576eac>:0)
    Bolt.UnitOption`1[TUnit].FillFromUnit () (at <ed846bfb09c14080abb024b81e14cfae>:0)
    Bolt.LiteralOption.FillFromUnit () (at <ed846bfb09c14080abb024b81e14cfae>:0)
    Bolt.UnitOption`1[TUnit]..ctor (Bolt.Literal unit) (at <ed846bfb09c14080abb024b81e14cfae>:0)
    Bolt.LiteralOption..ctor (Bolt.Literal unit) (at <ed846bfb09c14080abb024b81e14cfae>:0)
    System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) (at <6073cf49ed704e958b8a66d540dea948>:0)
    Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) (at <6073cf49ed704e958b8a66d540dea948>:0)
    System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <6073cf49ed704e958b8a66d540dea948>:0)
    System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <6073cf49ed704e958b8a66d540dea948>:0)
    System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) (at <6073cf49ed704e958b8a66d540dea948>:0)
    Ludiq.TypeUtility+<>c__DisplayClass8_0.<Instantiator>b__1 (System.Object[] args) (at <2050131b58a64bd6a8458ea32ce5ee1c>:0)
    Ludiq.TypeUtility.Instantiate (System.Type type, System.Boolean nonPublic, System.Object[] args) (at <2050131b58a64bd6a8458ea32ce5ee1c>:0)
    Ludiq.SingleDecoratorProvider`3[TDecorated,TDecorator,TAttribute].CreateDecorator (System.Type decoratorType, TDecorated decorated) (at <af5e15b3589540ac94baeb6e74576eac>:0)
    Ludiq.SingleDecoratorProvider`3[TDecorated,TDecorator,TAttribute].CreateDecorator (TDecorated decorated) (at <af5e15b3589540ac94baeb6e74576eac>:0)
    Ludiq.SingleDecoratorProvider`3[TDecorated,TDecorator,TAttribute].GetDecorator (TDecorated decorated) (at <af5e15b3589540ac94baeb6e74576eac>:0)
    Ludiq.SingleDecoratorProvider`3[TDecorated,TDecorator,TAttribute].GetDecorator[T] (TDecorated decorated) (at <af5e15b3589540ac94baeb6e74576eac>:0)
    Bolt.XUnitOptionProvider.Option (Bolt.IUnit unit) (at <ed846bfb09c14080abb024b81e14cfae>:0)
    Bolt.UnitBase+<GetTypeOptions>d__12.MoveNext () (at <ed846bfb09c14080abb024b81e14cfae>:0)
    Bolt.UnitBase+<GetStaticOptions>d__10.MoveNext () (at <ed846bfb09c14080abb024b81e14cfae>:0)
    System.Collections.Generic.HashSet`1[T].UnionWith (System.Collections.Generic.IEnumerable`1[T] other) (at <1e18c5a6594041c9844bfd0b6618ee4a>:0)
    System.Collections.Generic.HashSet`1[T]..ctor (System.Collections.Generic.IEnumerable`1[T] collection, System.Collections.Generic.IEqualityComparer`1[T] comparer) (at <1e18c5a6594041c9844bfd0b6618ee4a>:0)
    System.Collections.Generic.HashSet`1[T]..ctor (System.Collections.Generic.IEnumerable`1[T] collection) (at <1e18c5a6594041c9844bfd0b6618ee4a>:0)
    Bolt.UnitBase.Build () (at <ed846bfb09c14080abb024b81e14cfae>:0)
    Bolt.TypeOptionsPage.Complete () (at <ed846bfb09c14080abb024b81e14cfae>:0)
    Bolt.TypeOptionsPage.OnContentGUI () (at <ed846bfb09c14080abb024b81e14cfae>:0)
    Ludiq.Page.DrawContent () (at <af5e15b3589540ac94baeb6e74576eac>:0)
    Ludiq.Wizard.OnGUI () (at <af5e15b3589540ac94baeb6e74576eac>:0)
    Ludiq.WrappedEditorWindow.OnGUI () (at <af5e15b3589540ac94baeb6e74576eac>:0)
    UnityEditor.HostView.OldOnGUI () (at <780782bc035845f9909cebbd4c983ae3>: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 <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.EventDispatcher.OpenGate () (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <f23cc42ed8af4b73afc7c74ab921aa08>:0)
    UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <f0d008a86f5e41eda07a8cec48955104>:0)
     
  2. Tradecenter77

    Tradecenter77

    Joined:
    Jan 15, 2021
    Posts:
    5
  3. NikolayChichkan

    NikolayChichkan

    Joined:
    Dec 18, 2018
    Posts:
    1
  4. ericb_unity

    ericb_unity

    Unity Technologies

    Joined:
    Nov 24, 2017
    Posts:
    167
    For unity editor 2022+, no need to install Bolt, it was replaced with the Visual Scripting package and come with the editor in all new created projects. It will make the complete setup in background when you will add your first script machine component and create a new script graph on it.