Generate code

Rider helps with boiler-plate code, code completion, and more.

Rider makes it easy to generate Unity event functions, either using the Generate menu or simply by typing, with autocompletion.

Auto-completion will suggest event function names when declaring methods in Unity-based classes, and expand to include method signature. Start typing an event function within a class deriving from a known Unity class, such as MonoBehaviour.

Unity-specific live templates:

  • sprop: a Unity property with a serialized backing field
  • sfield: a Unity serialized field
  • log: shorthand for Debugger.Log()

See Also