Esempio n. 1
0
    void OnGUI()
    {
        EditorGUILayout.BeginVertical();

        EditorGUILayout.PrefixLabel("Target cubemap");

        m_Cubemap = EditorGUILayout.ObjectField(m_Cubemap, typeof(Cubemap), false) as Cubemap;

        EditorGUILayout.EndVertical();


        GUILayout.BeginVertical();

        InspectorUtils.VizualizeList(ref m_Lights, true);

        if (GUILayout.Button("Bake", GUILayout.MinWidth(120)))
        {
            if (m_Cubemap)
            {
                Process();
            }
        }

        GUILayout.EndVertical();
    }