41 lines
881 B
C#
41 lines
881 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
[CustomEditor(typeof(Photoshoot))]
|
|
public class PhotoshootEditor : Editor
|
|
{
|
|
public override void OnInspectorGUI()
|
|
{
|
|
base.OnInspectorGUI();
|
|
|
|
Photoshoot photoshoot = (Photoshoot)target;
|
|
|
|
if (String.IsNullOrWhiteSpace(photoshoot.OutputPath))
|
|
{
|
|
|
|
Debug.LogError("Output Path should not be empty");
|
|
}
|
|
|
|
if (photoshoot.items == null)
|
|
{
|
|
Debug.LogError("Items should not be null and must contain child Game Objects.");
|
|
}
|
|
|
|
/*if (GUILayout.Button("Say Cheese 📸"))
|
|
{
|
|
photoshoot.ProcessScreenshots();
|
|
}*/
|
|
|
|
if (GUILayout.Button("Say Cheese! 📸"))
|
|
{
|
|
photoshoot.ProcessScreenshotsFaster();
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**/ |