OnClick() 4.6 BETA - Help

    public void Example(string MyParent) {
                Debug.Log(MyParent);
    }

So I tried this, and set it up like explained in this vid on how to use the OnClick().

However, when I test it, nothing happens, so I was wondering if it my code or something.

I couldn’t find the part in the video that talked about this but it seems to me that you need a comma after string and parentheses before and after MyParent.

So try something like this,

public void example (string, MyParent){
Debug.Log ("MyParent");
}