internal static void UpdateAspectRatio(SerializedImageTarget it, Vector2 size)
 {
     it.AspectRatio = size[1] / size[0];
     using (List <ImageTargetAbstractBehaviour> .Enumerator enumerator = it.GetBehaviours().GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             ImageTargetEditor.UpdateMesh(enumerator.Current.gameObject, it.AspectRatio);
         }
     }
 }
 private static void CheckMesh(SerializedImageTarget serializedObject)
 {
     using (List <ImageTargetAbstractBehaviour> .Enumerator enumerator = serializedObject.GetBehaviours().GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             GameObject gameObject = enumerator.Current.gameObject;
             MeshFilter component  = gameObject.GetComponent <MeshFilter>();
             if ((component == null || component.sharedMesh == null) && !serializedObject.AspectRatioProperty.hasMultipleDifferentValues)
             {
                 ImageTargetEditor.UpdateMesh(gameObject, serializedObject.AspectRatio);
             }
         }
     }
     if (!serializedObject.DataSetPathProperty.hasMultipleDifferentValues && !serializedObject.TrackableNameProperty.hasMultipleDifferentValues)
     {
         ImageTargetEditor.UpdateMaterial(serializedObject);
     }
 }