UCC & UIS integration conflict with each other

polonel

Member
When using both the UCC and UIS integration, not all variable types get loaded. A conflict exists with both integrations using "SharedItemDefinition" variable types.

As a temp workaround, I renamed UIS ItemDefinition to "SharedUISItemDefinition". Just don't want to have to rename after every update.
 
Thanks, I actually noticed that a few days ago do to a different bug report. I've updated the Behavior Designer integration renaming it to SharedItemDefintiionBase.
 
I downloaded the UCC integration today, both SharedItemDefinition and SharedItemDefinitionBase are in the Scripts folder. Still need to remove the SharedItemDefinition file.
 
They have a different class name now so you should no longer need to remove one or the other.
 
I understand you refactored the Behavior Designer/Integrations/UltimateCharacterController/Scripts/SharedItemDefinition.cs into SharedItemDefinitionBase.cs importing the UCC integration for Behavior Designer still wants to import SharedItemDefinition.cs As does UltimateInventorySystem's integration. The Variable Types list stops being populated 1/2 way through. Just importing both integrations throws the error in the console.

ArgumentException: An item with the same key has already been added. Key: SharedItemDefinition
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <9577ac7a62ef43179789031239ba8798>:0)
BehaviorDesigner.Editor.VariableInspector.FindAllSharedVariableTypes (System.Boolean removeShared) (at <59a5905788cf4a0d801f900b29f20efe>:0)
BehaviorDesigner.Editor.VariableInspector.DrawHeader (BehaviorDesigner.Runtime.IVariableSource variableSource, System.Boolean fromGlobalVariablesWindow, System.Single& variableStartPosition, System.String& variableName, System.Boolean& focusNameField, System.Int32& variableTypeIndex, System.Int32& selectedVariableIndex, System.String& selectedVariableName, System.Int32& selectedVariableTypeIndex) (at <59a5905788cf4a0d801f900b29f20efe>:0)
BehaviorDesigner.Editor.VariableInspector.DrawVariables (BehaviorDesigner.Runtime.IVariableSource variableSource, BehaviorDesigner.Runtime.BehaviorSource behaviorSource, System.String& variableName, System.Boolean& focusNameField, System.Int32& variableTypeIndex, UnityEngine.Vector2& scrollPosition, System.Collections.Generic.List`1[System.Single]& variablePosition, System.Single& variableStartPosition, System.Int32& selectedVariableIndex, System.String& selectedVariableName, System.Int32& selectedVariableTypeIndex) (at <59a5905788cf4a0d801f900b29f20efe>:0)
BehaviorDesigner.Editor.VariableInspector.DrawVariables (BehaviorDesigner.Runtime.BehaviorSource behaviorSource) (at <59a5905788cf4a0d801f900b29f20efe>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.DrawPropertiesBox () (at <59a5905788cf4a0d801f900b29f20efe>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.Draw () (at <59a5905788cf4a0d801f900b29f20efe>:0)
BehaviorDesigner.Editor.BehaviorDesignerWindow.OnGUI () (at <59a5905788cf4a0d801f900b29f20efe>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
UnityEditor.DockArea.OldOnGUI () (at <1e441e8684a14fe4b8f8a926d91afc3a>: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 <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
 

Attachments

  • SharedItemDefinition.png
    SharedItemDefinition.png
    33.4 KB · Views: 2
  • SharedItemDefinitionUIS.png
    SharedItemDefinitionUIS.png
    28.5 KB · Views: 2
  • SharedItemDefinitionVariables.png
    SharedItemDefinitionVariables.png
    16.2 KB · Views: 2
Top