Exemple #1
0
    public override void OnInspectorGUI()
    {
        // Draw the default
        base.OnInspectorGUI();

        // Place the button at the bottom
        KeyCollection myScript = (KeyCollection)target;

        if (GUILayout.Button("Generate Keys"))
        {
            myScript.GenerateKeys();
        }
    }