Cheo
Active member
Hello, I was on a call with @DoctorJDWT and we stumbled upon this issue with the Unity Input System component - when importing UCC alone in a project, there's nothing wrong with it, but when importing UIS next here's what the component looks like :

Here's also the stack and source of the first one :
It turns out that in this situation Unity Input System is missing several properties that Unity Input has - m_ControllerHorizontalLookInputName, m_ControllerVerticalLookInputName, m_ControllerInputMultiplier, m_MouseControllerUpdate, m_ForceInput and m_JoystickUpThreshold if I'm not mistaken. Copying them from Unity Input to Unity Input System does fix the issue.
With the new Input System having been made the default input method for UCC, this issue is even more urgent to address, and if my memory is correct at least one other dev has stumbled upon it. Please address this, thanks.

Here's also the stack and source of the first one :
C#:
[Error] Unable to find property m_ControllerHorizontalLookInputName
InspectorBase.PropertyFromName() at ./Packages/com.opsive.shared/Editor/Inspectors/InspectorBase.cs:59
57: property = propertySerializedObject.FindProperty(propertyName);
58: if (property == null) {
--> 59: Debug.LogError("Unable to find property " + propertyName);
60: return null;
61: }
InspectorBase.PropertyFromName() at ./Packages/com.opsive.shared/Editor/Inspectors/InspectorBase.cs:41
39: public SerializedProperty PropertyFromName(string propertyName)
40: {
--> 41: return PropertyFromName(serializedObject, propertyName);
42: }
PlayerInputInspector.<GetDrawCallback>b__0_0() at ./Packages/com.opsive.shared/Editor/Inspectors/Input/PlayerInputInspector.cs:47
45: EditorGUILayout.PropertyField(PropertyFromName("m_HorizontalLookInputName"));
46: EditorGUILayout.PropertyField(PropertyFromName("m_VerticalLookInputName"));
--> 47: EditorGUILayout.PropertyField(PropertyFromName("m_ControllerHorizontalLookInputName"));
48: EditorGUILayout.PropertyField(PropertyFromName("m_ControllerVerticalLookInputName"));
49: EditorGUILayout.PropertyField(PropertyFromName("m_ControllerInputMultiplier"));
StateBehaviorInspector.OnInspectorGUI() at ./Packages/com.opsive.shared/Editor/Inspectors/StateSystem/StateBehaviorInspector.cs:98
96: if (callback != null) {
97: // Wait to draw the inherited component until the Script field has been drawn. This will allow the state foldout to be drawn after the inherited component.
--> 98: callback();
99: } else {
100: // If a callback doesn't exist use the InspectorFoldout attribute to draw all of the fields without having to create custom inspectors for each class.
InspectorWindow.RedrawFromNative()
It turns out that in this situation Unity Input System is missing several properties that Unity Input has - m_ControllerHorizontalLookInputName, m_ControllerVerticalLookInputName, m_ControllerInputMultiplier, m_MouseControllerUpdate, m_ForceInput and m_JoystickUpThreshold if I'm not mistaken. Copying them from Unity Input to Unity Input System does fix the issue.
With the new Input System having been made the default input method for UCC, this issue is even more urgent to address, and if my memory is correct at least one other dev has stumbled upon it. Please address this, thanks.
Last edited: