Class UnitTask
UnitTask's are used to implement supporting code for UnitTest's, for handling complex behind-the-scenes setup prior to test execution (e.
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.NetcodeUnitTest
Assembly: UE4DotNet.dll
Syntax
public class UnitTask : UObject
Remarks
g. primarily for implementing game-specific server/client environment setup), which is shared between many unit tests, and which is better to abstract-away from visibility in unit tests themselves, for code clarity.
For example, some games require authentication negotiation before the game client can connect to a server, and this is the type of task that UnitTask's are designed for.
Unit tasks that are added to a unit test, must complete execution before the unit test itself can execute.
Properties
| Improve this Doc View SourceDefaultObject
Get UE4 Default Object for this Class
Declaration
public static UnitTask DefaultObject { get; }
Property Value
Type | Description |
---|---|
UnitTask |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceNew(UObject, Name)
Spawn an object of this class
Declaration
public static UnitTask New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
UnitTask |
Operators
| Improve this Doc View SourceImplicit(IntPtr to UnitTask)
Convert from IntPtr to UObject
Declaration
public static implicit operator UnitTask(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
UnitTask |