PointCloudDataInspector.cs 459 B

123456789101112131415161718
  1. // Pcx - Point cloud importer & renderer for Unity
  2. // https://github.com/keijiro/Pcx
  3. using UnityEngine;
  4. using UnityEditor;
  5. namespace Pcx
  6. {
  7. [CustomEditor(typeof(PointCloudData))]
  8. public sealed class PointCloudDataInspector : Editor
  9. {
  10. public override void OnInspectorGUI()
  11. {
  12. var count = ((PointCloudData)target).pointCount;
  13. EditorGUILayout.LabelField("Point Count", count.ToString("N0"));
  14. }
  15. }
  16. }