TextPropertyData
Namespace: UAssetAPI.PropertyTypes.Objects
Describes an FText.
public class TextPropertyData : PropertyData`1, System.ICloneable
Inheritance Object → PropertyData → PropertyData<FString> → TextPropertyData
Implements ICloneable
Fields
Flags
Flags with various information on what sort of FText this is
public ETextFlag Flags;
HistoryType
The HistoryType of this FText.
public TextHistoryType HistoryType;
TableId
The string table ID being referenced, if applicable
public FName TableId;
Namespace
A namespace to use when parsing texts that use LOCTEXT
public FString Namespace;
CultureInvariantString
The source string for this FText. In the Unreal Engine, this is also known as SourceString.
public FString CultureInvariantString;
SourceFmt
public TextPropertyData SourceFmt;
Arguments
public FFormatArgumentValue[] Arguments;
ArgumentsData
public FFormatArgumentData[] ArgumentsData;
TransformType
public ETransformType TransformType;
Name
The name of this property.
public FName Name;
Ancestry
The ancestry of this property. Contains information about all the classes/structs that this property is contained within. Not serialized.
public AncestryInfo Ancestry;
ArrayIndex
The array index of this property. Used to distinguish properties with the same name in the same struct.
public int ArrayIndex;
PropertyGuid
An optional property GUID. Nearly always null.
public Nullable<Guid> PropertyGuid;
IsZero
Whether or not this property is "zero," meaning that its body can be skipped during unversioned property serialization because it consists solely of null bytes.
This field will always be treated as if it is false if PropertyData.CanBeZero(UnrealPackage) does not return true.
public bool IsZero;
PropertyTagFlags
public EPropertyTagFlags PropertyTagFlags;
PropertyTagExtensions
Optional extensions to serialize with this property.
public EPropertyTagExtension PropertyTagExtensions;
OverrideOperation
public EOverriddenPropertyOperation OverrideOperation;
bExperimentalOverridableLogic
public bool bExperimentalOverridableLogic;
Offset
The offset of this property on disk. This is for the user only, and has no bearing in the API itself.
public long Offset;
Tag
An optional tag which can be set on any property in memory. This is for the user only, and has no bearing in the API itself.
public object Tag;
Properties
PropertyType
public FString PropertyType { get; }
Property Value
Value
The "main value" of this property, if such a concept is applicable to the property in question. Properties may contain other values as well, in which case they will be present as other fields in the child class.
public FString Value { get; set; }
Property Value
RawValue
public object RawValue { get; set; }
Property Value
ShouldBeRegistered
Determines whether or not this particular property should be registered in the property registry and automatically used when parsing assets.
public bool ShouldBeRegistered { get; }
Property Value
HasCustomStructSerialization
Determines whether or not this particular property has custom serialization within a StructProperty.
public bool HasCustomStructSerialization { get; }
Property Value
DefaultValue
The default value of this property, used as a fallback when no value is defined. Null by default.
public object DefaultValue { get; }
Property Value
Constructors
TextPropertyData(FName)
public TextPropertyData(FName name)
Parameters
name
FName
TextPropertyData()
public TextPropertyData()
Methods
ShouldSerializeTableId()
public bool ShouldSerializeTableId()
Returns
Read(AssetBinaryReader, Boolean, Int64, Int64, PropertySerializationContext)
public void Read(AssetBinaryReader reader, bool includeHeader, long leng1, long leng2, PropertySerializationContext serializationContext)
Parameters
reader
AssetBinaryReader
includeHeader
Boolean
leng1
Int64
leng2
Int64
serializationContext
PropertySerializationContext
Write(AssetBinaryWriter, Boolean, PropertySerializationContext)
public int Write(AssetBinaryWriter writer, bool includeHeader, PropertySerializationContext serializationContext)
Parameters
writer
AssetBinaryWriter
includeHeader
Boolean
serializationContext
PropertySerializationContext
Returns
ToString()
public string ToString()
Returns
FromString(String[], UAsset)
public void FromString(String[] d, UAsset asset)
Parameters
d
String[]
asset
UAsset
HandleCloned(PropertyData)
protected void HandleCloned(PropertyData res)
Parameters
res
PropertyData