Created
April 23, 2014 14:56
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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