Show / Hide Table of Contents

Class DotNetGameInstance

Dot Net Game Instance

Inheritance
System.Object
UObject
GameInstance
DotNetGameInstance
Inherited Members
GameInstance.HandleNetworkError
GameInstance.HandleTravelError
GameInstance.ReceiveInit
GameInstance.ReceiveShutdown
GameInstance.LocalPlayers
GameInstance.OnlineSession
GameInstance.ReferencedObjects
UObject.TransientPackage
UObject.CastTo<T>(UObject)
UObject.CastTo(UObject, Type)
UObject.RemoveObject(UObject)
UObject.MakeObjectArrayField<T>(NativeArray*)
UObject.NotImplemented<T>()
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.DotNet
Assembly: UE4DotNet.dll
Syntax
public class DotNetGameInstance : GameInstance

Properties

| Improve this Doc View Source

ActionBindings

Action Bindings

Declaration
public ObjectArrayField<DotNetActionBinding> ActionBindings { get; }
Property Value
Type Description
ObjectArrayField<DotNetActionBinding>
| Improve this Doc View Source

AxisBindings

Axis Bindings

Declaration
public ObjectArrayField<DotNetAxisBinding> AxisBindings { get; }
Property Value
Type Description
ObjectArrayField<DotNetAxisBinding>
| Improve this Doc View Source

DefaultObject

Get UE4 Default Object for this Class

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

FirstFreeShared

First Free Shared

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

GameMode

GameMode is the rules keeper for this game.

Declaration
public virtual GameModeBase GameMode { get; protected set; }
Property Value
Type Description
GameModeBase
| Improve this Doc View Source

GameModeBaseType

Subclass of GameModeBase to use for Game Mode.

Declaration
public virtual Type GameModeBaseType { get; }
Property Value
Type Description
System.Type
| Improve this Doc View Source

MaxSharedPointerCount

The maximum number of pointers expected to be shared between DotNet and UE4.
This will be used to reserve space for the ObjectsSharedWithDotNet array so there will be no re-allocation during game play.

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

ObjectsSharedWithDotNet

Objects Shared with Dot Net

Declaration
public ObjectArrayField<UObject> ObjectsSharedWithDotNet { get; }
Property Value
Type Description
ObjectArrayField<UObject>
| Improve this Doc View Source

StaticClass

Get UE4 Class

Declaration
public static Class StaticClass { get; }
Property Value
Type Description
Class

Methods

| Improve this Doc View Source

Construct()

Declaration
public override void Construct()
Overrides
UObject.Construct()
| Improve this Doc View Source

New(UObject, Name)

Spawn an object of this class

Declaration
public static DotNetGameInstance New(UObject obj = null, Name name = default(Name))
Parameters
Type Name Description
UObject obj
Name name
Returns
Type Description
DotNetGameInstance
| Improve this Doc View Source

SetGameModeForURL(GameModeBase, String)

Event handler called when new GameMode is created.

Declaration
protected virtual void SetGameModeForURL(GameModeBase gameModeBase, string inMapURL)
Parameters
Type Name Description
GameModeBase gameModeBase

The UE4 GameModeBase Object

System.String inMapURL

The URL for the map being loaded

Remarks

This is called when a GameModeBase is created for this instance. It allows the Game to create a C# GameModeBase subclass.

| Improve this Doc View Source

Start(String)

Called after Game DLL is loaded, but before anything else

Declaration
public virtual void Start(string argument)
Parameters
Type Name Description
System.String argument

Events

| Improve this Doc View Source

SetGameModeBase

Set Game Mode Base

Declaration
public event DotNetGameInstance.SetGameModeBase_delegate SetGameModeBase
Event Type
Type Description
DotNetGameInstance.SetGameModeBase_delegate

Operators

| Improve this Doc View Source

Implicit(IntPtr to DotNetGameInstance)

Convert from IntPtr to UObject

Declaration
public static implicit operator DotNetGameInstance(IntPtr p)
Parameters
Type Name Description
System.IntPtr p
Returns
Type Description
DotNetGameInstance
  • Improve this Doc
  • View Source
Back to top Generated by DocFX