Unity Tip for Mono Develop – How to Comment your Functions & Parameters (with XML)

Unity Function Comments with XML

The way in which I was writing comments for my functions was consistent, but entirely in my own style. I knew there must be a better way of creating this documentation using a more standard coding convention. Indeed there is. Using triple slashes and the format for XML comments, your explanation will be viewable when you using […]

A Bare Bones, Simple Unity Player Controller (Top Down, C#)

I'm working on prototyping a top-down game and wanted to start off with a bare-bones/boilerplate player controller. I found one on the forum that got me up and running quickly, but it had a little extra code and was not using Input.GetAxis or Input.GetButton. It's recommended to use these rather than Input.GetKey, because it can also apply to game controllers or other input devices. Then you can set the keys in an options screen. I'm planning on testing with an Xbox controller, so I wanted to start it off properly.