Click or drag to resize

ReInputPlayerHelper Class

Provides access to all player-related members.
Inheritance Hierarchy
SystemObject
  CodeHelper
    RewiredReInputPlayerHelper

Namespace: Rewired
Assembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public sealed class PlayerHelper : CodeHelper

The ReInputPlayerHelper type exposes the following members.

Properties
 NameDescription
Public propertyallPlayerCount Count of all players including system player
Public propertyAllPlayers List of all Players including System player
Public propertyplayerCount Count of Players excluding system player
Public propertyPlayers List of all Players excluding System player
Public propertySystemPlayer The System player
Top
Methods
 NameDescription
Public methodGetPlayer(Int32) Gets a Player at a specific id
Public methodGetPlayer(String) Gets a Player by name
Public methodGetPlayerDescriptiveNames Gets an array of player descriptive names. Optionally includes the System player. Allocates an array, so use sparingly to reduce garbage collection.
Public methodGetPlayerId Gets the id of a Player by name
Public methodGetPlayerIds Gets an array of player ids. Optionally includes System player. Allocates an array, so use sparingly to reduce garbage collection.
Public methodGetPlayerNames Gets an array of player names. Optionally includes the System player. Allocates an array, so use sparingly to reduce garbage collection.
Public methodGetPlayers Gets a list of Players.
Public methodGetSystemPlayer Gets the System Player
Top
See Also