public static void AssertTArrayProperty <T>(UStruct unrealStruct, string name) where T : UProperty { UProperty prop = unrealStruct.FindPropertyByName(new FName(name)); Assert(prop != null, unrealStruct.GetName() + "." + name); UArrayProperty arrayProp = prop as UArrayProperty; Assert(arrayProp != null, unrealStruct.GetName() + "." + name); Assert(arrayProp.Inner as T != null, unrealStruct.GetName() + "." + name + " TArray Inner property"); }
public async Task <UEProperty> GetInner() { if (ObjArrayProperty.Empty()) { ObjArrayProperty = await Object.Cast <UArrayProperty>(); } if (!ObjArrayProperty.Inner.IsValid()) { return(new UEProperty()); } return((await ObjectsStore.GetByAddress(ObjArrayProperty.Inner)).Cast <UEProperty>()); }