private UnityEngine.Object TextureValidator(UnityEngine.Object[] references, System.Type objType, SerializedProperty property) { foreach (UnityEngine.Object obj2 in references) { Texture t = obj2 as Texture; if ((t != null) && ((ShaderUtil.GetTextureDimension(t) == this.m_DesiredTexdim) || (this.m_DesiredTexdim == MaterialProperty.TexDim.Any))) { return t; } } return null; }