Ok so i have this code script. it is a simple enable script…

public void otherstuff(List objsToBeTurnedoff,List objsToBeTurnedOn){

		foreach(GameObject a in objsToBeTurnedOn)
		{
			a.SetActive(true);
		}

		foreach(GameObject a in objsToBeTurnedOn)
		{
			a.SetActive(false);
		}
	}


When I put this in a script…
46822-screen-shot-2015-05-22-at-53525-am.png
It will not show…

The only functions that will appear there are public functions that return void and takes 0 or 1 parameter, and the parameter should be an int, float, bool, string or UnityEngine.Object.

So, you can’t use a function that takes 2 List parameters.

I had similar problem. In my case it was because of compile error in the code
Make sure to check this if nothing else helps