c# recurise function test works on debug not on run code example
Example 1: unity how to make code only run in editor
#if UNITY_EDITOR //Code here for Editor only. #endif
Example 2: java script how to not allow soace
$(function() {
$('#input1').on('keypress', function(e) {
if (e.which == 32){
console.log('Space Detected');
return false;
}
});
});