Show / Hide Table of Contents

Class LocalPlayer

Each player that is active on the current client has a LocalPlayer.

Inheritance
System.Object
UObject
Player
LocalPlayer
Inherited Members
Player.PlayerController
Player.CurrentNetSpeed
Player.ConfiguredInternetSpeed
Player.ConfiguredLanSpeed
UObject.TransientPackage
UObject.CastTo<T>(UObject)
UObject.CastTo(UObject, Type)
UObject.RemoveObject(UObject)
UObject.MakeObjectArrayField<T>(NativeArray*)
UObject.NotImplemented<T>()
UObject.Construct()
UObject.GetHashCode()
UObject.GetName()
UObject.ToString()
UObject.Name
UObject._None
UObject.None
UObject.ObjPointer
UObject.LoadObjectFromClass(Class, UObject, String, String, LoadFlags, PackageMap, Boolean)
UObject.LoadClass(Class, UObject, String, String, LoadFlags, PackageMap)
UObject.GetPropertyFor<T>(Name)
UObject.ExecuteUbergraph
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 Source

AspectRatioAxisConstraint

How to constrain perspective viewport FOV

Declaration
public byte AspectRatioAxisConstraint { get; set; }
Property Value
Type Description
System.Byte
| Improve this Doc View Source

bSentSplitJoin

Declaration
public bool bSentSplitJoin { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ControllerId

The controller ID which this player accepts input from.

Declaration
public int ControllerId { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

DefaultObject

Get UE4 Default Object for this Class

Declaration
public static LocalPlayer DefaultObject { get; }
Property Value
Type Description
LocalPlayer
| Improve this Doc View Source

PendingLevelPlayerControllerClass

The class of PlayerController to spawn for players logging in.

Declaration
public SubclassOf<PlayerController> PendingLevelPlayerControllerClass { get; set; }
Property Value
Type Description
SubclassOf<PlayerController>
| Improve this Doc View Source

StaticClass

Get UE4 Class

Declaration
public static Class StaticClass { get; }
Property Value
Type Description
Class
| Improve this Doc View Source

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 Source

New(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 Source

Implicit(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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX