Class FTextCrash
Tests an RPC crash caused by empty FText's, as reported on the UDN here: https://udn.
Inherited Members
Namespace: UE4.NUTUnrealEngine4
Assembly: UE4DotNet.dll
Syntax
public class FTextCrash : ClientUnitTest
Remarks
unrealengine.com/questions/213120/using-empty-ftexts-within-rpcs.html
UDN Post: "Using Empty FTexts within RPCs" Hey, we're using FTexts within RPCs functions (server -> client in my specific case) to pass localized strings. That works fine until the point when the server sends an empty FText. In that case both the FText members SourceString and DisplayString are null on client side which lead to crashes whenever you use something like ToString which assumes those are valid.
Is this the intended behavior? I'm using FTextInspector::GetSourceString(text) to run checks on these replicated FTexts now to catch this case. FTexts that are not empty work just fine.
Thanks, Oliver
Properties
| Improve this Doc View SourceDefaultObject
Get UE4 Default Object for this Class
Declaration
public static FTextCrash DefaultObject { get; }
Property Value
Type | Description |
---|---|
FTextCrash |
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 FTextCrash New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
FTextCrash |
Operators
| Improve this Doc View SourceImplicit(IntPtr to FTextCrash)
Convert from IntPtr to UObject
Declaration
public static implicit operator FTextCrash(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
FTextCrash |