Class DotNetGameInstance
Dot Net Game Instance
Inherited Members
Namespace: UE4.DotNet
Assembly: UE4DotNet.dll
Syntax
public class DotNetGameInstance : GameInstance
Properties
| Improve this Doc View SourceActionBindings
Action Bindings
Declaration
public ObjectArrayField<DotNetActionBinding> ActionBindings { get; }
Property Value
Type | Description |
---|---|
ObjectArrayField<DotNetActionBinding> |
AxisBindings
Axis Bindings
Declaration
public ObjectArrayField<DotNetAxisBinding> AxisBindings { get; }
Property Value
Type | Description |
---|---|
ObjectArrayField<DotNetAxisBinding> |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static DotNetGameInstance DefaultObject { get; }
Property Value
Type | Description |
---|---|
DotNetGameInstance |
FirstFreeShared
First Free Shared
Declaration
public int FirstFreeShared { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
GameMode
GameMode is the rules keeper for this game.
Declaration
public virtual GameModeBase GameMode { get; protected set; }
Property Value
Type | Description |
---|---|
GameModeBase |
GameModeBaseType
Subclass of GameModeBase to use for Game Mode.
Declaration
public virtual Type GameModeBaseType { get; }
Property Value
Type | Description |
---|---|
System.Type |
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 |
ObjectsSharedWithDotNet
Objects Shared with Dot Net
Declaration
public ObjectArrayField<UObject> ObjectsSharedWithDotNet { get; }
Property Value
Type | Description |
---|---|
ObjectArrayField<UObject> |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceConstruct()
Declaration
public override void Construct()
Overrides
| Improve this Doc View SourceNew(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 |
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.
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 SourceSetGameModeBase
Set Game Mode Base
Declaration
public event DotNetGameInstance.SetGameModeBase_delegate SetGameModeBase
Event Type
Type | Description |
---|---|
DotNetGameInstance.SetGameModeBase_delegate |
Operators
| Improve this Doc View SourceImplicit(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 |