public void Add(string propertyName, ELifetimeCondition condition = ELifetimeCondition.None, ELifetimeRepNotifyCondition repNotifyCondition = ELifetimeRepNotifyCondition.OnChanged) { IntPtr property = FindProperty(propertyName); int arrayDim = Native_UProperty.Get_ArrayDim(property); ushort repIndex = Native_UProperty.Get_RepIndex(property); for (ushort i = 0; i < arrayDim; i++) { dest.Add(new FLifetimeProperty((ushort)(repIndex + i), condition, repNotifyCondition)); } }
public static ushort GetPropertyRepIndex(IntPtr unrealStruct, string propertyName) { IntPtr property = FindField(unrealStruct, propertyName); return(property == IntPtr.Zero ? (ushort)0 : Native_UProperty.Get_RepIndex(property)); }