These nodes are useful for getting an individual Player, a group of them, or all of them.
Please note that this function is a member of the Networking class, but it is being included here.
The local player is the Player that this Udon script is currently running on-- alternately, the local player is you. It's very important to know yourself!
Gets the actual number of Players in the instance when it is called.
This is how you get all the Players in your world so you can go through them in a For Loop and apply settings, make changes, look for a particular name, etc. To use it, you first need to create a VRCPlayerApi Array. Here is a unitypackage with a working example.
Get a VRCPlayerApi object for the given player Id if it exists.
Get the cached PlayerId, calls GetPlayerId if it hasn't been cached yet.
Gets the Player's Network Id from the source.
This system is a quick-and-dirty way of assigning strings to players without creating your own variables and collections.
Set: string, string
Sets a string variable that you can look up later. For example, you could set the "role" of a player in a cooking game to "chef" or "customer". Then you could GetPlayerTag for "role" and get back either "chef" or "customer".
Remove all tags that you've set on a Player.
NEEDS A FIX
Not currently working as it returns a list. Will fix and update. You will be able to pass in an array of VRCPlayerApi objects and a tag and the method will fill the array with Players who have that tag set.
The following methods are deprecated - they do not work in SDK3 and will be removed in the future:
Updated 6 months ago