Skip to content

Instantly share code, notes, and snippets.

@NickDiMucci
Created April 23, 2014 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NickDiMucci/11218621 to your computer and use it in GitHub Desktop.
Save NickDiMucci/11218621 to your computer and use it in GitHub Desktop.
Unity default parameter method inside a namespace test. This currently doesn't work as of Unity 4.3.4f1. Multiple exceptions are thrown at runtime.
namespace com.mindshaft.test {
public class DefaultParamTest : MonoBehaviour {
void Update() {
DefaultParamTest();
}
private void DefaultParamTest(int param = 0) {
Debug.Log("param: " + param);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment