Can't compile after update to latest UCC version 3.3p1

Ideki

New member
just updated to Ultimate Character Controller 3.3p1and now I have a whole bunch of errors I did not have before.

Packages\com.opsive.ultimatecharactercontroller\Runtime\Utility\Builders\CharacterBuilder.cs(616,67): error CS0234: The type or namespace name 'InputSystem' does not exist in the namespace 'Opsive.Shared.Input' (are you missing an assembly reference?)

Any idea how to fix this?
Opsive Shared is still 2.1.0

1756413679242.png
 
Based on that error you don't have the latest changes. Did you completely remove the previous packages? This page has the details:


I also recommend trying a fresh project to verify.
 
I have removed the 2 directories mentioned in the patch note.
I have redownloaded 3.3p1
I have reimported 3.3p1.

I am still getting
1756474096694.png
 
PlayerNetwork looks like it's your own script and could be preventing the shared package from compiling. I recommend just verifying everything works by creating a new project and then you can bring in the new packages to your existing package.
 
Ok, that was it, I did not realize it was pointing at my own code.

So before I was using:

C#:
[SerializeField] UnityInputSystem unityInput;

if (unityInput.GetButtonDown("Escape"))
{
  //Debug.Log("Pressed");
}
if (unityInput.GetButtonUp("Escape"))
{
  //Debug.Log("Released");
}

What should I replace it with now if I want to have the same functionality?
 
It does, it's in Opsive.Shared.Input.InputSystem. I forgot to mention this change in the release notes.
 
Back
Top