100 UNITY TIPS!!! 🔥
Video Statistics and Information
Channel: Brackeys
Views: 409,395
Rating: undefined out of 5
Keywords: brackeys, unity, unity3d, model, texture, material, beginner, easy, how, to, learn, tutorial, tutorials, tip, game, development, develop, games, programming, coding, basic, basics, C#, 100, tips, 100 tips, 100 unity tips, tricks, 10, top, list, quick, best, practices, trick, faster, new year, 2019
Id: thA3zv0IoUM
Channel Id: undefined
Length: 11min 53sec (713 seconds)
Published: Sun Jan 06 2019
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
List of all tips with links (copied from youtube comment):
1 Selection Outline
2 Pixel Perfect Camera
3 Sprite Y-based Sorting
4 Destroy delay
5 Create material from shader
6 Execute code without empty object
7 Save changes in play-mode
8 Random boolean
9 Struct instead of Class
10 Auto-statements
11 Coroutine(ception)
12 Animation script parameters
13 Focus in the animation window
14 Toggle between Curves and Keyframes
15 Reverse animation
16 Comparing distances quicker
17 TextMeshPro
18 SerializeField
19 HideInInspector
20 Rename a variable and keep the value
21 Folder shortcuts
22 Focus
23 Focus follow
24 Align with view
25 CompareTag function
26 Empty objects as dividers
27 Find objects with Component
28 Find assets of Type
29 Easily move lines
30 Documentation shortcut
31 Documentation History
32 Expand/Collapse All
33 Changing Editor Layout
34 Change editor colors
35 Tinting the editor in playmode
36 Toogle scene effects
37 Menu Item
38 Context Menu Item
39 Hiding layers
40 Locking layers
41 Layer sub menus
42 Global C# Defines
43 Color Picking
44 Copy/paste colors
45 Maximising Windows
46 Serialize Structs and Classes
47 Collision Matrix
48 Collider interaction Matrix
49 Math in Inspector
50 Locking the inspector
51 Inspector debug mode
52 Debug Log highlights an object
53 Styling in Debug Logs
54 Plotting debug values
55 Add Component shortcut
56 Importing save files
57 Keep photoshop layers
58 Gizmos
59 Custom Gizmos
60 Show/hide gizmos
61 Show/hide gizmos in game view
62 StringBuilder
63 ScriptableObjects
64 Scripts changes while playing
65 Custom Windows
66 Custom Inspectors
67 ToolsV
68 RectTransform in 3D
69 Snapping
70 Snapping options
71 Vertex grab
72 Manages Assemblies
73 WaitForSeconds & TimeScaleV
74 Cash variables
75 Never use Camera.main
76 Performant non-changing strings
77 Range attribute
78 Space attribute
79 Header attribute
80 Tooltip attribute
81 Asset Store in Editor
82 Merge scenesV
83 Duplicate
84 Duplicate array items
85 Editor Presets
86 Iterate over child objects
87 Change object order in Hierarchy
88 Save selections
89 Regions
90 Pause Editor through code
91 Frame Skip
92 Stats window
93 Profiler
94 Measure function in Profiler
95 Undocking the preview
96 Mute your game
97 Invoke Repeating
98 Frame Debugger
99 Physics Debugger
100 DON'T MAKE AN MMO RPG
Nice, tip 94 (https://docs.unity3d.com/ScriptReference/Profiling.Profiler.BeginSample.html) looks really helpful!
Nice tips, except the term for #74 is "caching" (from "cache") and not "cashing" :)
9 I think structs by default should be readonly. It can gets some performance boosts. A lot less spam on stack from defensive copies.
https://blogs.msdn.microsoft.com/seteplia/2018/05/03/avoiding-struct-and-readonly-reference-performance-pitfalls-with-errorprone-net/
Don't forget to click the f**king "Save Project" button everytime you make any changes to a material or scriptable object.
Im just writing stuff down and saving it for myself later. (yes im using reddit for my notes)
Plotting debug values : https://www.youtube.com/watch?v=thA3zv0IoUM&t=358s
Collistion interaction matrix: https://www.youtube.com/watch?v=thA3zv0IoUM&t=305s
Vertex grab: https://www.youtube.com/watch?v=thA3zv0IoUM&t=464s
Measure function in Profiler: https://www.youtube.com/watch?v=thA3zv0IoUM&t=588s