UAPUtils
Namespace: UAssetAPI
public static class UAPUtils
Inheritance Object → UAPUtils
Attributes ExtensionAttribute
Properties
APIVersion
Current version of UAssetAPI (major.minor.patch + suffix). Suffixed with "d" in debug configurations and "x" in experimental release configurations.
public static string APIVersion { get; }
Property Value
DisplayVersion
Display agent for UAssetAPI.
public static string DisplayVersion { get; }
Property Value
CurrentCommit
The Git commit associated with this build of UAssetAPI.
public static string CurrentCommit { get; }
Property Value
Methods
SerializeJson(Object, Boolean)
public static string SerializeJson(object obj, bool isFormatted)
Parameters
obj Object
isFormatted Boolean
Returns
FindAllInstances<T>(Object)
public static List<T> FindAllInstances<T>(object parent)
Type Parameters
T
Parameters
parent Object
Returns
List<T>
Clamp<T>(T, T, T)
public static T Clamp<T>(T val, T min, T max)
Type Parameters
T
Parameters
val T
min T
max T
Returns
T
GetOrderedFields<T>()
public static FieldInfo[] GetOrderedFields<T>()
Type Parameters
T
Returns
GetOrderedFields(Type)
public static FieldInfo[] GetOrderedFields(Type t)
Parameters
t Type
Returns
GetOrderedMembers<T>()
public static MemberInfo[] GetOrderedMembers<T>()
Type Parameters
T
Returns
GetOrderedMembers(Type)
public static MemberInfo[] GetOrderedMembers(Type t)
Parameters
t Type
Returns
GetValue(MemberInfo, Object)
public static object GetValue(MemberInfo memberInfo, object forObject)
Parameters
memberInfo MemberInfo
forObject Object
Returns
SetValue(MemberInfo, Object, Object)
public static void SetValue(MemberInfo memberInfo, object forObject, object forVal)
Parameters
memberInfo MemberInfo
forObject Object
forVal Object
GetImportNameReferenceWithoutZero(Int32, UAsset)
public static FString GetImportNameReferenceWithoutZero(int j, UAsset asset)
Parameters
j Int32
asset UAsset
Returns
InterpretAsGuidAndConvertToUnsignedInts(String)
public static UInt32[] InterpretAsGuidAndConvertToUnsignedInts(string value)
Parameters
value String
Returns
ConvertStringToByteArray(String)
public static Byte[] ConvertStringToByteArray(string val)
Parameters
val String
Returns
ToUnsignedInts(Guid)
public static UInt32[] ToUnsignedInts(Guid value)
Parameters
value Guid
Returns
GUID(UInt32, UInt32, UInt32, UInt32)
public static Guid GUID(uint value1, uint value2, uint value3, uint value4)
Parameters
value1 UInt32
value2 UInt32
value3 UInt32
value4 UInt32
Returns
ConvertToGUID(String)
public static Guid ConvertToGUID(string GuidString)
Parameters
GuidString String
Returns
ConvertToString(Guid)
public static string ConvertToString(Guid val)
Parameters
val Guid
Returns
ConvertHexStringToByteArray(String)
public static Byte[] ConvertHexStringToByteArray(string hexString)
Parameters
hexString String
Returns
AlignPadding(Int64, Int32)
public static long AlignPadding(long pos, int align)
Parameters
pos Int64
align Int32
Returns
AlignPadding(Int32, Int32)
public static int AlignPadding(int pos, int align)
Parameters
pos Int32
align Int32
Returns
DivideAndRoundUp(Int32, Int32)
public static int DivideAndRoundUp(int a, int b)
Parameters
a Int32
b Int32
Returns
IsNormal(PropertySerializationContext)
public static bool IsNormal(PropertySerializationContext context)
Parameters
context PropertySerializationContext
Returns
FixDirectorySeparatorsForDisk(String)
public static string FixDirectorySeparatorsForDisk(string path)
Parameters
path String
Returns
SortByDependencies<T>(IEnumerable<T>, IDictionary<T, IList<T>>)
public static List<T> SortByDependencies<T>(IEnumerable<T> allExports, IDictionary<T, IList<T>> dependencies)
Type Parameters
T
Parameters
allExports IEnumerable<T>
dependencies IDictionary<T, IList<T>>
Returns
List<T>