Sometimes you'll find that adding a new canvas with some buttons is totally not interactible.
Check if the scene containing the Canvas also has an EventSystem in it.
| // dictionary shorthand declaration | |
| Dictionary<int, string> students = new Dictionary<int, string> | |
| { | |
| [123456] = "Mary", | |
| [314159] = "John", | |
| [145145] = "Ethan" | |
| }; | |
| // public readonly getter | |
| private int _secret; |
| shortcut | description |
|---|---|
| Ctrl + G | select next occurance |
| Ctrl + Cmd + G | select all occurances |
| Shift + F6 | rename entity in code |
| Opt + F12 | toggle terminal |
| Cmd + Shift + F12 | toggle all sidebars |
| Opt + Cmd + M | extract method |
| Opt + Cmd + V | extract variable |
| Opt + Cmd + C | extract constant |
| Hotkey | Description |
|---|---|
| Opt + Arrows | Move lines |
| Shift + F12 | Find all references |
| Cmd + [ | untab line |
| Cmd + ] | tab line |
Apprenticeship Patterns - D. Hoover
Clean Code - R. Martin
Working efficiently with legacy code
| from itertools import product | |
| from collections import defaultdict | |
| import re | |
| from pprint import pprint | |
| from math import prod, sqrt | |
| neighbours = [ | |
| [-1, 0], | |
| [0, 1], | |
| [1, 0], |