Skip to content

Instantly share code, notes, and snippets.

@sasame
Created September 5, 2023 17:18
Show Gist options
  • Select an option

  • Save sasame/a3de6ac72f44e12de7e7f7d61804efcd to your computer and use it in GitHub Desktop.

Select an option

Save sasame/a3de6ac72f44e12de7e7f7d61804efcd to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public class LASImportMenu
{
[MenuItem("LAS/LAS Import", false, 0)]
public static void Import()
{
string filename = EditorUtility.OpenFilePanel("Import LAS", "", "las");
if (string.IsNullOrEmpty(filename) == false)
{
LASImporter importer = new LASImporter();
importer.Import(filename);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment