Exemplo n.º 1
0
 GameObject ImportModel(string f, int n, int t, int m)
 {
     //Option: 0 - None, 1 - Import, 2 - Compute/Generate(Normal/Tangent only)
     FbxPluginOptions options = new FbxPluginOptions () { filename = f, normalsOption = n, tangentsOption = t, materialsOption = m };
     FbxPlugin fp = new FbxPlugin ();
     fp.ImportModel (options);
     GameObject go = fp.DisplayScene ();
     return go;
 }
Exemplo n.º 2
0
 private static extern bool ImportScene(ref FbxPluginOptions options);
Exemplo n.º 3
0
 public void ImportModel(FbxPluginOptions options)
 {
     fbxPluginOptions = options;
     Debug.Log ("Import Success:" + ImportScene (ref fbxPluginOptions));
     fbxPluginScene = fbxPluginOptions.scene;
 }