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; }
private static extern bool ImportScene(ref FbxPluginOptions options);
public void ImportModel(FbxPluginOptions options) { fbxPluginOptions = options; Debug.Log ("Import Success:" + ImportScene (ref fbxPluginOptions)); fbxPluginScene = fbxPluginOptions.scene; }