Post by nitrox32 on Jul 1, 2020 18:16:47 GMT
First, the new crafting system has been amazing to work with! Congratulations another great add-on! My question has to do with creating and using a prefab in another scene. After getting the crafting system set up in one scene, I made a prefab and added it to a new scene. In the new scene I'm getting this error when I open the crafting window:
NullReferenceException: Object reference not set to an instance of an object
Invector.vItemManager.vItemsCraftMaterialDisplay.set_amount (System.Int32 value) (at Assets/Invector-3rdPersonController/Add-ons/Inventory Craft System/Scripts/Inventory/vItemsCraftMaterialDisplay.cs:34)
Invector.vItemManager.vItemCraftAmountWindow.ResetAmount () (at Assets/Invector-3rdPersonController/Add-ons/Inventory Craft System/Scripts/Inventory/vItemCraftAmountWindow.cs:47)
Invector.vItemManager.vItemCraftAmountWindow.OnEnable () (at Assets/Invector-3rdPersonController/Add-ons/Inventory Craft System/Scripts/Inventory/vItemCraftAmountWindow.cs:32)
UnityEngine.GameObject:SetActive(Boolean)
Invector.vItemManager.vMasterWindow:SetCurrentWindow(GameObject) (at Assets/Invector-3rdPersonController/ItemManager/Scripts/vMasterWindow.cs:80)
Invector.vItemManager.vToolbarSelector:SelectToolbar(Int32) (at Assets/Invector-3rdPersonController/ItemManager/Scripts/vToolbarSelector.cs:53)
Invector.vItemManager.<>c__DisplayClass10_0:<Awake>b__0() (at Assets/Invector-3rdPersonController/ItemManager/Scripts/vToolbarSelector.cs:24)
UnityEngine.Events.UnityEvent:Invoke()
Invector.vItemManager.vToolbarButton:OnSelectTool(vToolbarButton) (at Assets/Invector-3rdPersonController/ItemManager/Scripts/vToolbarButton.cs:36)
Invector.vItemManager.vToolbarSelector:SelectToolbar(Int32) (at Assets/Invector-3rdPersonController/ItemManager/Scripts/vToolbarSelector.cs:52)
Invector.vItemManager.<>c__DisplayClass10_0:<Awake>b__0() (at Assets/Invector-3rdPersonController/ItemManager/Scripts/vToolbarSelector.cs:24)
UnityEngine.Events.UnityEvent:Invoke()
Invector.vItemManager.vToolbarButton:OnPointerClick(PointerEventData) (at Assets/Invector-3rdPersonController/ItemManager/Scripts/vToolbarButton.cs:50)
UnityEngine.EventSystems.EventSystem:Update() (at D:/Unity/2019.3.1f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/EventSystem.cs:377)
Invector.vItemManager.vItemsCraftMaterialDisplay.set_amount (System.Int32 value) (at Assets/Invector-3rdPersonController/Add-ons/Inventory Craft System/Scripts/Inventory/vItemsCraftMaterialDisplay.cs:34)
Invector.vItemManager.vItemCraftAmountWindow.ResetAmount () (at Assets/Invector-3rdPersonController/Add-ons/Inventory Craft System/Scripts/Inventory/vItemCraftAmountWindow.cs:47)
Invector.vItemManager.vItemCraftAmountWindow.OnEnable () (at Assets/Invector-3rdPersonController/Add-ons/Inventory Craft System/Scripts/Inventory/vItemCraftAmountWindow.cs:32)
UnityEngine.GameObject:SetActive(Boolean)
Invector.vItemManager.vMasterWindow:SetCurrentWindow(GameObject) (at Assets/Invector-3rdPersonController/ItemManager/Scripts/vMasterWindow.cs:80)
Invector.vItemManager.vToolbarSelector:SelectToolbar(Int32) (at Assets/Invector-3rdPersonController/ItemManager/Scripts/vToolbarSelector.cs:53)
Invector.vItemManager.<>c__DisplayClass10_0:<Awake>b__0() (at Assets/Invector-3rdPersonController/ItemManager/Scripts/vToolbarSelector.cs:24)
UnityEngine.Events.UnityEvent:Invoke()
Invector.vItemManager.vToolbarButton:OnSelectTool(vToolbarButton) (at Assets/Invector-3rdPersonController/ItemManager/Scripts/vToolbarButton.cs:36)
Invector.vItemManager.vToolbarSelector:SelectToolbar(Int32) (at Assets/Invector-3rdPersonController/ItemManager/Scripts/vToolbarSelector.cs:52)
Invector.vItemManager.<>c__DisplayClass10_0:<Awake>b__0() (at Assets/Invector-3rdPersonController/ItemManager/Scripts/vToolbarSelector.cs:24)
UnityEngine.Events.UnityEvent:Invoke()
Invector.vItemManager.vToolbarButton:OnPointerClick(PointerEventData) (at Assets/Invector-3rdPersonController/ItemManager/Scripts/vToolbarButton.cs:50)
UnityEngine.EventSystems.EventSystem:Update() (at D:/Unity/2019.3.1f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/EventSystem.cs:377)