Pun 2 and action based controller

Options

Hi

I am using Pun2 and I am following below tutorial. I can not animte hands. Do you know if Pun2 works with action based controller?

How to Make a VR Multiplayer Game - PART 2 - YouTube

I have added below code to start() in my NetworkPlayer script

controllerArray = ActionBasedController.FindObjectsOfType<ActionBasedController>();

and then I want to get left hand controller grip and trigger inputs. For some reason it deos not seem to be working. Do you know what the issue is?

controllerArray[0].selectAction.action.ReadValue<float>()

controllerArray[0].activateAction.action.ReadValue<float>()

Comments

  • Tobias
    Tobias admin
    edited May 2022
    Options

    PUN 2 should be compatible but I don't know how to make it work with the ActionBasedController, sorry.

    In the end, you want to fetch the current values and send them on the controller client. Read and apply / lerp values on the receiver.

    In VR projects, we think Fusion is quite a bit better. Give it a try instead.