Class MultiplayerInfo
Special component that assigns a player index to a UI structure.
It can either get it from a Player Input component, or use a custom player index.
This component is available only if Multiplayer mode is enabled.
Inheritance
MultiplayerInfo
Assembly: cs.temp.dll.dll
public class MultiplayerInfo : MonoBehaviour
Properties
Declaration
public bool autoUpdate { get; set; }
Property Value
Declaration
public int customPlayerIndex { get; set; }
Property Value
Declaration
public bool ignorePlayerIndex { get; }
Property Value
Reference to the UIManager Input Settings
Declaration
public static UIManagerInputSettings inputSettings { get; }
Property Value
Type |
Description |
UIManagerInputSettings |
|
True if Multiplayer Mode is enabled
Declaration
public static bool multiplayerMode { get; }
Property Value
Declaration
public int playerIndex { get; }
Property Value
Declaration
public bool useCustomPlayerIndex { get; set; }
Property Value
Methods
Declaration
public MultiplayerInfo SetAutoUpdate(bool value)
Parameters
Type |
Name |
Description |
Boolean |
value |
|
Returns
Declaration
public MultiplayerInfo SetCustomPlayerIndex(int value)
Parameters
Type |
Name |
Description |
Int32 |
value |
|
Returns
Declaration
public MultiplayerInfo SetUseCustomPlayerIndex(bool value)
Parameters
Type |
Name |
Description |
Boolean |
value |
|
Returns
Declaration
public void UpdateReferences()