Beispiel #1
0
 private void LoadRipFile(string path)
 {
     if (File.Exists(path))
     {
         var rip = mRipReader.Load(path);
         if (null != rip)
         {
             RipImporterWindow = EditorWindow.GetWindow <RipImporter>(false, "Rip Importer");
             RipImporterWindow.titleContent        = new GUIContent(rip.meshName);
             RipImporterWindow.minSize             = new Vector2(450, 400);
             RipImporterWindow.mRipData            = rip;
             RipImporterWindow.onMeshDataPrepared += (MeshData mesh) => {
                 AddMeshData(mesh.Name, mesh, path);
             };
             RipImporterWindow.Show();
         }
     }
 }
Beispiel #2
0
    static void OpenImporter()
    {
        RipImporter window = (RipImporter)EditorWindow.GetWindow(typeof(RipImporter));

        window.Show();
    }