VRCPlayerAPI.GetBonePosition takes a HumanBodyBones argument. Is there a way for me to define that as a variable in an Udon graph?

I can’t seem to find a way to use that type as an argument in the Udon Graph.

I have an object that tracks the player’s hands. Right now, in order for there to be one on both the left and right hands, I need to have two separate scripts with the only difference being the bone name. This makes editing them a pain.

If I were able to define the bone outside of the script, I could make both trackers use only the one script. This would greatly help my workflow.

As of right now, I can only find the type declaration. I can’t seem find a way to define a variable as that type. I’m not sure if there’s some sort of generalized variable declaration where you input a type for enum-style variables like this.

If anyone happens to know of a solution, I would greatly appreciate your help!

1 Like

I was having the same issue. Would be really nice if you could set the body part with a public variable so that you could use the same script for multiple bone positions.