Beispiel #1
0
 public FStructFallback(FAssetArchive Ar, UStruct?structType = null)
 {
     if (Ar.HasUnversionedProperties)
     {
         if (structType == null)
         {
             throw new ArgumentException("For unversioned struct fallback the struct type cannot be null", nameof(structType));
         }
         Properties = UObject.DeserializePropertiesUnversioned(Ar, structType);
     }
     else
     {
         Properties = UObject.DeserializePropertiesTagged(Ar);
     }
 }