Class LocalPlayer
Each player that is active on the current client has a LocalPlayer.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UE4.Engine
Assembly: UE4DotNet.dll
Syntax
public class LocalPlayer : Player
Remarks
It stays active across maps There may be several spawned in the case of splitscreen/coop. There may be 0 spawned on servers.
Properties
| Improve this Doc View SourceAspectRatioAxisConstraint
How to constrain perspective viewport FOV
Declaration
public byte AspectRatioAxisConstraint { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
bSentSplitJoin
Declaration
public bool bSentSplitJoin { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ControllerId
The controller ID which this player accepts input from.
Declaration
public int ControllerId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static LocalPlayer DefaultObject { get; }
Property Value
Type | Description |
---|---|
LocalPlayer |
PendingLevelPlayerControllerClass
The class of PlayerController to spawn for players logging in.
Declaration
public SubclassOf<PlayerController> PendingLevelPlayerControllerClass { get; set; }
Property Value
Type | Description |
---|---|
SubclassOf<PlayerController> |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
ViewportClient
The master viewport containing this player's view.
Declaration
public GameViewportClient ViewportClient { get; set; }
Property Value
Type | Description |
---|---|
GameViewportClient |
Methods
| Improve this Doc View SourceNew(UObject, Name)
Spawn an object of this class
Declaration
public static LocalPlayer New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
LocalPlayer |
Operators
| Improve this Doc View SourceImplicit(IntPtr to LocalPlayer)
Convert from IntPtr to UObject
Declaration
public static implicit operator LocalPlayer(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
LocalPlayer |