コード例 #1
0
ファイル: Sample.cs プロジェクト: sonygod/ESPUnity
 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;
 }
コード例 #2
0
ファイル: FbxPlugin.cs プロジェクト: sonygod/ESPUnity
 private static extern bool ImportScene(ref FbxPluginOptions options);
コード例 #3
0
ファイル: FbxPlugin.cs プロジェクト: sonygod/ESPUnity
 public void ImportModel(FbxPluginOptions options)
 {
     fbxPluginOptions = options;
     Debug.Log ("Import Success:" + ImportScene (ref fbxPluginOptions));
     fbxPluginScene = fbxPluginOptions.scene;
 }