public override void OnInspectorGUI() { ImageCreator imageCreator = (ImageCreator)target; DrawDefaultInspector(); if (GUILayout.Button("Randomize")) { imageCreator.CreateRandomNoiseTexture(); } if (GUILayout.Button("Save To Image")) { imageCreator.SaveToImage(); } }