UAPUtils

Namespace: UAssetAPI

public static class UAPUtils

Inheritance ObjectUAPUtils

Fields

CurrentCommit

public static string CurrentCommit;

Methods

SerializeJson(Object, Boolean)

public static string SerializeJson(object obj, bool isFormatted)

Parameters

obj Object

isFormatted Boolean

Returns

String

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

FieldInfo[]

GetOrderedFields(Type)

public static FieldInfo[] GetOrderedFields(Type t)

Parameters

t Type

Returns

FieldInfo[]

GetOrderedMembers<T>()

public static MemberInfo[] GetOrderedMembers<T>()

Type Parameters

T

Returns

MemberInfo[]

GetOrderedMembers(Type)

public static MemberInfo[] GetOrderedMembers(Type t)

Parameters

t Type

Returns

MemberInfo[]

GetValue(MemberInfo, Object)

public static object GetValue(MemberInfo memberInfo, object forObject)

Parameters

memberInfo MemberInfo

forObject Object

Returns

Object

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

FString

InterpretAsGuidAndConvertToUnsignedInts(String)

public static UInt32[] InterpretAsGuidAndConvertToUnsignedInts(string value)

Parameters

value String

Returns

UInt32[]

ConvertStringToByteArray(String)

public static Byte[] ConvertStringToByteArray(string val)

Parameters

val String

Returns

Byte[]

ToUnsignedInts(Guid)

public static UInt32[] ToUnsignedInts(Guid value)

Parameters

value Guid

Returns

UInt32[]

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

Guid

ConvertToGUID(String)

public static Guid ConvertToGUID(string GuidString)

Parameters

GuidString String

Returns

Guid

ConvertToString(Guid)

public static string ConvertToString(Guid val)

Parameters

val Guid

Returns

String

ConvertHexStringToByteArray(String)

public static Byte[] ConvertHexStringToByteArray(string hexString)

Parameters

hexString String

Returns

Byte[]

AlignPadding(Int64, Int32)

public static long AlignPadding(long pos, int align)

Parameters

pos Int64

align Int32

Returns

Int64

AlignPadding(Int32, Int32)

public static int AlignPadding(int pos, int align)

Parameters

pos Int32

align Int32

Returns

Int32

DivideAndRoundUp(Int32, Int32)

public static int DivideAndRoundUp(int a, int b)

Parameters

a Int32

b Int32

Returns

Int32

FixDirectorySeparatorsForDisk(String)

public static string FixDirectorySeparatorsForDisk(string path)

Parameters

path String

Returns

String

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>