Example #1
0
    public override void OnInspectorGUI()
    {
        ImageCreator imageCreator = (ImageCreator)target;

        DrawDefaultInspector();
        if (GUILayout.Button("Randomize"))
        {
            imageCreator.CreateRandomNoiseTexture();
        }
        if (GUILayout.Button("Save To Image"))
        {
            imageCreator.SaveToImage();
        }
    }