private IntPtr FindProperty(string propertyName) { FName fname = new FName(propertyName); IntPtr property = Native_UStruct.FindPropertyByName(nativeClass, ref fname); if (!(FBuild.BuildShipping || FBuild.BuildTest)) { if (property == IntPtr.Zero) { FMessage.Log(FMessage.LogNet, ELogVerbosity.Fatal, $"Attempt to replicate property '{propertyName}' which does not exist."); } else if (!Native_UProperty.HasAnyPropertyFlags(property, EPropertyFlags.Net)) { FMessage.Log(FMessage.LogNet, ELogVerbosity.Fatal, $"Attempt to replicate property '{propertyName}' that was not tagged to replicate! Please use 'Replicated' or 'ReplicatedUsing' keyword in the UProperty() declaration."); } } return(property); }
public UProperty FindPropertyByName(FName name) { return(GCHelper.Find <UProperty>(Native_UStruct.FindPropertyByName(Address, ref name))); }