private void OnGUI() { EditorGUILayout.BeginVertical(); { GUILayout.FlexibleSpace(); GUILayout.Label("Creating input node of type :"); m_Type = (TextureCreatorComponentContainerInputTypes)EditorGUILayout.EnumPopup(m_Type); if (GUILayout.Button("Create")) { m_InputCallback.Invoke(m_Type); Close(); } GUILayout.FlexibleSpace(); } EditorGUILayout.EndVertical(); }
public void Initialize(Action <TextureCreatorComponentContainerInputTypes?> callback) { m_InputCallback = callback; m_Type = TextureCreatorComponentContainerInputTypes.Texture; }