secretlabs
New member
So i make a new project and imported the inventory system, The controller system and the dialog system. Everything is working well except when i try to add a binding to my weapons for the damage function/ Use the damage from the inventory item database. when i try to do this the Ui in the inspector just boots me out of the script itself and occasionally bugs the inventory on the player and makes the whole script component disappear. needless to say i cannot add bindings! I have been following along in the tutorial videos provided, I'm exactly where we need to add bindings and I'm stuck! The error is so large i cannot add it all to this post!
NullReferenceException: Object reference not set to an instance of an object.UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException (System.Object obj) (at <4d55ab038a5f4117a0dc489fc0160902>:0)UnityEditor.SerializedObject.get_targetObject () (at <83b0917d7d7a474c956c0331fad2895c>:0)Opsive.Shared.Editor.UIElements.UIElementsUtility+<>c__DisplayClass5_0.<CreateUIElementInspectorGUI>b__0 (System.Object obj) (at <caa7e67f8ade47358637818642d6931a>:0)Opsive.Shared.Editor.UIElements.FieldInspectorView+<>c__DisplayClass8_0.<AddField>b__0 (System.Object value) (at <caa7e67f8ade47358637818642d6931a>:0)Opsive.Shared.Editor.UIElements.FieldInspectorView+<>c__DisplayClass14_0.<AddSingleField>b__1 (System.Object changedValue) (at <caa7e67f8ade47358637818642d6931a>:0)Opsive.UltimateCharacterController.Editor.Controls.CharacterItemActionModuleGroupBaseControl+<>c__DisplayClass3_0.<GetControl>b__0 (Opsive.UltimateCharacterController.Items.Actions.Modules.ActionModuleGroupBase newValue) (at ./Packages/com.opsive.ultimatecharactercontroller/Editor/Controls/Types/CharacterItemActionModuleGroupBaseControl.cs:58)Opsive.UltimateCharacterController.Editor.Inspectors.Items.Actions.CharacterItemActionModuleGroupField.InvokeValueChanged (System.Boolean refresh) (at ./Packages/com.opsive.ultimatecharactercontroller/Editor/Inspectors/Items/Actions/CharacterItemActionInspector.cs:278)Opsive.UltimateCharacterController.Editor.Inspectors.Items.Actions.CharacterItemActionModuleGroupField+<>c__DisplayClass7_0.<DrawModule>b__0 (System.Object obj) (at ./Packages/com.opsive.ultimatecharactercontroller/Editor/Inspectors/Items/Actions/CharacterItemActionInspector.cs:237)Opsive.Shared.Editor.UIElements.FieldInspectorView+<>c__DisplayClass4_0.<AddFields>b__0 (System.Object value) (at <caa7e67f8ade47358637818642d6931a>:0)Opsive.UltimateCharacterController.Editor.Controls.Types.BoundStateObjectControlType+<>c__DisplayClass1_0.<GetHeaderControl>b__1 (System.Object o) (at ./Packages/com.opsive.ultimatecharactercontroller/Editor/Controls/Types/BoundStateObjectControl.cs:90)Opsive.Shared.Editor.UIElements.FieldInspectorView+<>c__DisplayClass8_0.<AddField>b__0 (System.Object value) (at <caa7e67f8ade47358637818642d6931a>:0)Opsive.Shared.Editor.UIElements.FieldInspectorView+<>c__DisplayClass14_0.<AddSingleField>b__1 (System.Object changedValue) (at <caa7e67f8ade47358637818642d6931a>:0)Opsive.UltimateCharacterController.Editor.Controls.Types.ImpactActionGroupControlType+<>c__DisplayClass2_0.<GetControl>b__0 (Opsive.UltimateCharacterController.Items.Actions.Impact.ImpactActionGroup newValue) (at ./Packages/com.opsive.ultimatecharactercontroller/Editor/Controls/Types/ImpactActionGroupControl.cs:49)Opsive.UltimateCharacterController.Editor.Controls.Types.ImpactActionGroupField.Set (System.Collections.Generic.IList`1[T] actions) (at ./Packages/com.opsive.ultimatecharactercontroller/Editor/Controls/Types/ImpactActionGroupControl.cs:128)Opsive.UltimateCharacterController.Editor.Inspectors.Items.Actions.GenericReorderableList`1[T].InvokeValueChanged (System.Boolean refresh) (at ./Packages/com.opsive.ultimatecharactercontroller/Editor/Inspectors/Items/Actions/GenericReorderableList.cs:239)Opsive.UltimateCharacterController.Editor.Inspectors.Items.Actions.GenericReorderableList`1+<>c__DisplayClass13_0[T].<DrawModule>b__0 (System.Object obj) (at ./Packages/com.opsive.ultimatecharactercontroller/Editor/Inspectors/Items/Actions/GenericReorderableList.cs:214)Opsive.Shared.Editor.UIElements.FieldInspectorView+<>c__DisplayClass4_0.<AddFields>b__0 (System.Object value) (at <caa7e67f8ade47358637818642d6931a>:0)Opsive.UltimateCharacterController.Editor.Controls.Types.BoundStateObjectControlType+<>c__DisplayClass0_0.<GetControl>b__0 (System.Object o) (at ./Packages/com.opsive.ultimatecharactercontroller/Editor/Controls/Types/BoundStateObjectControl.cs:43)Opsive.Shared.Editor.UIElements.FieldInspectorView+<>c__DisplayClass8_0.<AddField>b__0 (System.Object value) (at <caa7e67f8ade47358637818642d6931a>:0)Opsive.Shared.Editor.UIElements.FieldInspectorView+<>c__DisplayClass14_0.<AddSingleField>b__1 (System.Object changedValue) (at <caa7e67f8ade47358637818642d6931a>:0)Opsive.UltimateCharacterController.Editor.Controls.Types.StateObjectBindingGroupControlType+<>c__DisplayClass2_0.<GetControl>b__0 (Opsive.UltimateCharacterController.Items.Actions.Bindings.StateObjectBindingGroup newValue) (at ./Packages/com.opsive.ultimatecharactercontroller/Editor/Controls/Types/StateObjectBindingGroupControl.cs:47)Opsive.UltimateCharacterController.Editor.Controls.Types.StateObjectBindingGroupField.Set (System.Collections.Generic.IList`1[T] bindings) (at ./Packages/com.opsive.ultimatecharactercontroller/Editor/Controls/Types/StateObjectBindingGroupControl.cs:127)Opsive.UltimateCharacterController.Editor.Inspectors.Items.Actions.GenericReorderableList`1[T].InvokeValueChanged (System.Boolean refresh) (at ./Packages/com.opsive.ultimatecharactercontroller/Editor/Inspectors/Items/Actions/GenericReorderableList.cs:239)Opsive.UltimateCharacterController.Editor.Inspectors.Items.Actions.GenericReorderableList`1+<>c__DisplayClass13_0[T].<DrawModule>b__0 (System.Object obj) (at ./Packages/com.opsive.ultimatecharactercontroller/Editor/Inspectors/Items/Actions/GenericReorderableList.cs:214)Opsive.Shared.Editor.UIElements.FieldInspectorView+<>c__DisplayClass4_0.<AddFields>b__0 (System.Object value) (at <caa7e67f8ade47358637818642d6931a>:0)Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.Editor.ItemObjectBindingControl+<>c__DisplayClass0_0.<CreateCustomControlVisualElement>b__0 (Opsive.UltimateInventorySystem.Core.ItemCategory newCategory) (at Assets/Opsive/Opsive Ultimate Character Controller/Integrations/UltimateInventorySystem/Editor/InventoryItemBindingControl.cs:69)Opsive.UltimateInventorySystem.Editor.Inspectors.ItemCategoryAttributeBindingView.<.ctor>b__19_0 (Opsive.UltimateInventorySystem.Core.ItemCategory x) (at ./Packages/com.opsive.ultimateinventorysystem/Editor/Inspectors/ItemCategoryAttributeBindingView.cs:72)Opsive.UltimateInventorySystem.Editor.VisualElements.InventoryObjectSearchableListWindow`1[T].InvokeAction (System.Int32 index) (at ./Packages/com.opsive.ultimateinventorysystem/Editor/VisualElements/InventoryObjectSearchableListWindow.cs:128)Opsive.UltimateInventorySystem.Editor.VisualElements.InventoryObjectSearchableListWindow`1+<>c__DisplayClass28_0[T].<BuildPopupContent>b__0 (System.Int32 index) (at ./Packages/com.opsive.ultimateinventorysystem/Editor/VisualElements/InventoryObjectSearchableListWindow.cs:111)Opsive.UltimateInventorySystem.Editor.VisualElements.SearchableList`1[T].<.ctor>b__28_4 (System.Int32 index) (at ./Packages/com.opsive.ultimateinventorysystem/Editor/VisualElements/SearchableList.cs:175)Opsive.Shared.Editor.UIElements.ReorderableList.SelectItem (System.Int32 index) (at <caa7e67f8ade47358637818642d6931a>:0)Opsive.Shared.Editor.UIElements.ReorderableList.MouseDown (Opsive.Shared.Editor.UIElements.ReorderableList+ListItem item) (at <caa7e67f8ade47358637818642d6931a>:0)