DEV Community

Discussion on: What was your win this week?

Collapse
 
ajinkyax profile image
Ajinkya Borade

I finally got my Unity 3D object to run and controller 3rd perspective camera smoothly and with less code. Thanks to WFH, I'm learning so much.

Thanks to new Input System Package (copy pasted) and replaced Input with Input controls component. -> docs.unity3d.com/ScriptReference/C...

moveAction = playerInput.actions["Move"]

...
void Update() {
Vector2 input = moveAction.ReadValue<Vector2>();
...
Enter fullscreen mode Exit fullscreen mode