Files
monde-usage-unity/Assets/Scripts/Editor/ObjectZoomPanelEditor.cs
2024-10-04 23:36:50 +02:00

31 lines
740 BLFS
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using UnityEngine;
using UnityEditor;
[CustomEditor(typeof(ObjectZoomPanel))]
[CanEditMultipleObjects]
public class ObjectZoomPanelEditor : Editor
{
public override void OnInspectorGUI()
{
// Draw the default inspector first
DrawDefaultInspector();
// Add a space in the inspector
EditorGUILayout.Space();
string text = "Atelier décriture « si jétais un légume, je serais une aubergine » et questions des élèves de lEJPE";
if (target != null)
{
ObjectZoomPanel ObjectZoomPanel = (ObjectZoomPanel)target;
Texture textureField = EditorGUILayout.ObjectField("Texture", null, typeof(Texture), true) as Texture;
if (GUILayout.Button("Update"))
{
}
}
}
}