title: Unity3D: Extract Textures from FBX via C# script
body: <p>I am struggling to find a way to extract textures from an FBX model in Unity via script. Unity has a hidden method to extract materials <a href="https://github.com/Unity-Technologies/UnityCsReference/blob/master/Editor/Mono/Prefabs/PrefabUtility.cs" rel="nofollow noreferrer">here</a>, but cannot find a method to extract textures even in their own github.</p>
  <p>i even tried to use the same approach to load Texture2D-s from the asset file like so:</p>
  <pre class="lang-cs prettyprint-override"><code>    IEnumerable&lt;Object&gt; enumerable = from x in AssetDatabase.LoadAllAssetsAtPath(assetPath)
                                                   where x.GetType() == typeof(Texture2D)
                                                   select x;
  </code></pre>
  <p>but to no avail.
  Can anyone help? thank you!</p>