Narven
4/6/2015 - 6:48 PM

Unity3D Preprocessor directives

Unity3D Preprocessor directives

#if UNITY_EDITOR
// stuff that only is going to happen inside the editor
#endif

// run stuff in editor
[ExecuteInEditMode]
public class HelloWorld : MonoBehaviour
{

}