SanAndreasUnity/Assets/Scripts/Editor/LightSourceInspector.cs
2022-03-06 03:15:40 +01:00

25 lines
No EOL
591 B
C#

using SanAndreasUnity.Behaviours.World;
using UnityEditor;
using UnityEngine;
namespace SanAndreasUnity.Editor
{
[CustomEditor(typeof(LightSource))]
public class LightSourceInspector : UnityEditor.Editor
{
public override void OnInspectorGUI()
{
base.DrawDefaultInspector ();
GUILayout.Space (10);
GUILayout.Label("Light info:");
GUILayout.Space (10);
var lightSource = (LightSource) this.target;
EditorUtils.DrawFieldsInInspector(lightSource.LightInfo, 0, false);
}
}
}