private Object TextureValidator(Object[] references, Type objType, SerializedProperty property) { foreach (Object obj2 in references) { Texture texture = obj2 as Texture; if (texture != null) { return texture; } } return null; }