mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-29 23:40:23 +00:00
25 lines
No EOL
591 B
C#
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);
|
|
}
|
|
|
|
}
|
|
} |