예제 #1
0
    void DrawPrefabInspector()
    {
        EditorGUILayout.BeginVertical("Box");
        GUILayout.Space(4f);

        GUI.color = Color.green;
        if (GUILayout.Button("Modifier la zone de lave", GUILayout.Height(30f)))
        {
            PrefabUtility.DisconnectPrefabInstance(lava);
            lava.RefreshLava();
        }
        GUI.color = Color.white;

        GUILayout.Space(8f);
        EditorGUILayout.EndVertical();
    }