Пікірлер
@greenguydubstep
@greenguydubstep 2 күн бұрын
5:17 wtf is this tip
@pielovervi
@pielovervi 17 күн бұрын
Key Notes: 01. While right-clicking the SceneView, use W/S to move forward/back, A/D to move left/right, and Q/E to move up/down. (WASD + QE controls!) 02. Alt+Arrow keys move a line of code in your IDE up/down. 03. Set up multiple layouts for different workflows: E.g. One for Animation, one for gameplay, one for rendering, one for navigation, etc. Makes it easy to switch to different ideas/workflows! 04. Use Invoke() to simply call a function at a fixed wait time. Much more simple than setting up a couroutine. 05. Use InvokeRepeating() to call a function on a loop after a fixed wait time. Much more simple than setting up a couroutine. 06. When using a function that passes in the name of a variable/function/etc as a string, use nameof() to get the name of it as a string. This ensures no spelling related issues and if you later rename it, it will correct itself! 07. Selecting renamable object/function and hitting F2 will allow quick renaming of it. 08. Join a game development Discord. (self-promo) 09. CTRL+SHIFT+N makes a new GameObject in the hierachy. 10. F focuses on a selected GameObject in the SceneView. SHIFT+F to focus and follow. 11. CTRL+SHIFT+F aligns a GameObject to the position and rotation of the SceneView camera. (Great for aligning cameras and vcams!) 12. C switches from Dopesheet to Curves and back in the Animation tab. 13. The question mark icon opens the documentation of a component in the browser. 14. CTRL+K+C to comment block a section of code in your IDE (vscode, etc). 15. CTRL+K+U to uncomment block a section of code in your IDE (vscode, etc). 16. Typing the keyword of an 'if', 'while', or 'for' and hitting tab twice auto-completes it. 17. CTRL+P to enter Play Mode. 18. CTRL+SHIFT+P to pause Play Mode. 19. CTRL+ALT+P to advance frame-by-frame in Play Mode. 20. Navigating to 'Edit>Shortcuts' allows you to see and modify all of the current shortcuts available to you. 21. [SerializeField] attribute added on to a variable makes it serializable and therefore viewable in the inspector, even if it is private/protected! 22. [HideInInspector] attribute added on to a variable makes it invisible to the inspector, even if it is public. 23. Use empty GameObjects to divide the Hierarchy into sections. You don't have to make all of the objects children in the catagories, since this can often cause world/relative space issues, etc. 24. [Header("TEXT GOES HERE")] attribute added on to a variable divides the inspector variables into sections making it easier to see and manage. 25. [Space(int/float)] attribute added on to a variable divides the inspector variables with vertical space making it easier to see and manage. 26. You can drag-and-drop another scene into the hierarchy to make copy-pasting from one scene to the other easier. 27. [Tooltip("TEXT GOES HERE")] attribute added on to a variable adds text for the user to see after hovering, making it easier to understand the purpose of the variable. 28. [Range(int/float, int/float)] attribute added on to a variable narrows down the potential serialized values that the user can set the variable to within the confines of the range. It also give the UI a slider in the inspector. 29. [Min(int/float] attribute added on to a variable narrows down the potential serialized values that the user can set the variable to above the minimum. It does not give the UI any slider in the inspector. There is no max attribute. 30. In the Layers drop-down menu, in the top-right corner, the eye icon disables what layer can be seen in the SceneView. Likewise, the touch icon disables what layer can be selected/pickable in the SceneView. 31. Eye/touch icons in the hierarchy have the same functionality as #30, but on a per GameObject basis. 32. When creating a new layer or tag, using a slash (/) in the name creates a submenu and item when selecting a layer or tag. 33. #region and #endregion creates a region of code in your IDE, that makes it easy to hide sections to make finding/organising stuff easier and faster. Placing text after the #region names it. 34. Clicking the hamburger menu (three dots) icon on the scene and navigation to 'Discard changes' reverts back to the last saved copy of the scene (wipes the Undo History). 35. (self-promo) 36. Set up a Tags class script to avoid spelling-related issues that can happen when using string literals. E.g. better to use Tags.player than having to manually type "Player". 37. Use gameObject.CompareTag("tagName") instead of gameObject.tag == "tagName". Combine with tip #36 for some solid code! 38. In the Assets tab, you can click the shapes icon to search for assets of a type. CLICK on a type to search it, or CRTL-CLICK to search muliple types (which broadens the search types, it doesn't narrow it) 39. Use the Undo History button (top-right corner) or use CTRL-U to access the Undo History tab. Clicking on any of the items in the buffer will undo all of the changes to that point in time. 40. Use Debug.Log(), Debug.LogWarning(), and Debug.LogError() to make and send a message (and specify the severity of it) to the Console tab when in Play Mode. Makes it much easier to debug code behaviour while in Play Mode. 41. Navigate to 'Edit>Preferences>General>Script Changes While Playing' to change what happens when the code is changed during Play Mode. Default is 'Recompile And Continue Playing', but this can cause null-reference errors. 42. Use the sliders icon button in the component's header to save and load custom component presets. 43. [ContextMenu("TEXT")] attribute makes a button that execute a function when pressed in the Editor, in or out of Play Mode. This button is found when right-clicking the component header, or with the hamburger menu (three dots) icon. 44. Navigate to 'Edit>Project Settings>Editor>Numbering Scheme>Game Object Naming' to select your naming/numbering scheme preference for when you make multiple copies of a GameObject or Prefab. 45. Change Application.targetFrameRate to limit the frame rate of the game while playing. This is useful for debugging frame-timing related issues. Be careful to not ship the game with this. Make an in-scene GameObject to manage this. 46. Navigate to 'Edit>Project Settings>Time' to manage the default FixedUpdate()/Physics Timestep interval, particle Timestep, and overall Time Scale. Useful for increasing the amount of FixedUpdates are in a second and more. 47. Use the ternary operator (?) to set a variable, rather than using if statements to conditionalize it. E.g. string variable = (condition) ? "VALUE IF TRUE" : "VALUE IF FALSE". Ternary operators can be nested, too! 48. Time is money; When you can buy a useful asset for cheap, do it if it will save you a greater amount of time or money for your project, rather than making your own solution. 49. Use a TO-DO list (Trello board, etc) to organize your project step-by-step, so you don't get lost. 50. Use Cinemachine for controlling and managing your camera. It's very versatile and it can get you exactly what camera effects you need for your game.
@pielovervi
@pielovervi 17 күн бұрын
Here if anyone wants it. I recommend writing them down yourself by hand since they'll probably be easier to remember that way.
@kobaltsteel6418
@kobaltsteel6418 Ай бұрын
Very helpful video! Thanks a lot! One problem though, wonder if anyone could help; I tried the script on a few 2D lights for my 2D game and, while the global light worked fine, the spot lights don't seem to be working, it's just not showing anything... any help on why?
@jestmaki
@jestmaki Ай бұрын
Very helpful! Thank you!
@MosaddiqBillah-tr9mx
@MosaddiqBillah-tr9mx 2 ай бұрын
I doubled checked if I was on KZfaq when I saw the guy.
@GoldenDevs
@GoldenDevs Ай бұрын
Why? Am I just that pretty?
@ThatFNDuoYT
@ThatFNDuoYT 3 ай бұрын
Doesnt show up the unity keywords
@pmak111
@pmak111 3 ай бұрын
The best way to learn something is learning it 50 Tips at a time 😅
@andrewcugliari3425
@andrewcugliari3425 4 ай бұрын
As a beginner game dev, thank you for the tips! (I'm also sending this to my friend Jeremy who doesn't use Unity)
@SwayamVaza-qr8vs
@SwayamVaza-qr8vs 5 ай бұрын
Thank you sir!
@ElmoPlayss
@ElmoPlayss 5 ай бұрын
"Rigidbody does not contain a definition for Velocity and no accessible extension method Velocity accepting a first argument of type Rigidbody could be found (are you missing a using directive or an assembly reference?)" I also don't have variables like you in my movement script in inspector
@Digildon
@Digildon 5 ай бұрын
Ctrl+shift+n for new empty object. That's useful!
@kitler_Dev
@kitler_Dev 6 ай бұрын
Improve your voice btw tips are amazing 🤩
@GoldenDevs
@GoldenDevs 6 ай бұрын
Thank you for the feedback, I already have, check out my latest video if you got the time, happy you liked the content
@bahadorghalandarpoor2904
@bahadorghalandarpoor2904 6 ай бұрын
nice
@StickmanXE
@StickmanXE 6 ай бұрын
I doesn’t allow me to add modules on to my editor
@koenfrontatie
@koenfrontatie 6 ай бұрын
Great tips man, you deserve more subscribers
@gamingtime2610
@gamingtime2610 6 ай бұрын
This is actually more helpful then you think
@GoldenDevs
@GoldenDevs 6 ай бұрын
Happy to hear that 💛
@sammyiscuul
@sammyiscuul 6 ай бұрын
So I tried this using text, but the text just disappears when I play. It changes the color, but it is hidden for some reason.
@GoldenDevs
@GoldenDevs 6 ай бұрын
I haven't tried that but it sounds odd, you can send me the code from discord, I'll take a look when I can. Thanks for watching the video💛
@snakeeyes7165
@snakeeyes7165 Ай бұрын
@@GoldenDevs This same thing is happening to me when trying to change this code for the color component of an image. Image is replaced with a grey, even though the color is changing in the inspector. Did we find a fix for it?
@snakeeyes7165
@snakeeyes7165 Ай бұрын
Found the fix. When you add colors to the array unity defaults to 0 for the alpha so set those to 255 in the inspector.
@LiveAndFilms
@LiveAndFilms 7 ай бұрын
Thank you! That was sooo soo helpful!
@dfa8917
@dfa8917 8 ай бұрын
Very useful tips, but had a hard time understanding your voice there sometimes.
@GoldenDevs
@GoldenDevs 8 ай бұрын
Thank you, yeah I didn't have a good mic back then, hope you learned something tho 💛
@JiwonSong95
@JiwonSong95 9 ай бұрын
Very informative video, but what happen to your camera lens 😂😂😂😂
@ANKITTIWARI-wy8ek
@ANKITTIWARI-wy8ek 9 ай бұрын
Unable to join your discord channel. Have some development related questions regarding my game. Need help.
@GoldenDevs
@GoldenDevs 9 ай бұрын
I already saw your welcome message on my discord server
@itsshazar8942
@itsshazar8942 9 ай бұрын
CTRL RR was magnificent !!
@wongjackson3345
@wongjackson3345 9 ай бұрын
This is so cool , thanks for the video
@GoldenDevs
@GoldenDevs 9 ай бұрын
Thank you for watching, glad you liked it, join our discord server too if you like 👌😁
@weckar
@weckar 9 ай бұрын
SO half of these are tips for whatever your specific code editor is...
@dev-yu
@dev-yu 9 ай бұрын
My jaw dropped... This video is Amazing. Thank you so much!!
@GoldenDevs
@GoldenDevs 9 ай бұрын
Thank you for the kind words man
@SkorpionYassine
@SkorpionYassine 9 ай бұрын
The Ctrl Alt P frame by frame made my mind go 🤯🤯🤯🤯🤯
@Composit.Design
@Composit.Design 9 ай бұрын
I have the opposite problem - good at art, never written a line of code in my life. Let's work together!
@GoldenDevs
@GoldenDevs 9 ай бұрын
Hi, thanks for reaching out, message me on discord, let's have a little conversation! My username on discord is "goldendevs".
@DBarnes07
@DBarnes07 9 ай бұрын
Just started getting into game dev and im curious, why compare tag instead of ==? Is it an optimization type thing or is it just better in general?
@GoldenDevs
@GoldenDevs 9 ай бұрын
Optimization
@PeterMilko
@PeterMilko 9 ай бұрын
thanks dude, i learned a few things. Im making a game. Im an indie dev.
@GoldenDevs
@GoldenDevs 9 ай бұрын
Glad I could help!
@techie_harshu
@techie_harshu 9 ай бұрын
Great video buddy
@manusiabiasa200
@manusiabiasa200 9 ай бұрын
wow, for a 5 minute video this is a gold mine for a new dev. thanks man you just earn a new subscriber
@CodeMonkeyUnity
@CodeMonkeyUnity 9 ай бұрын
Really great video, tons of super useful tips!
@GoldenDevs
@GoldenDevs 9 ай бұрын
True pleasure getting a compliment on one of my relatively bad videos from one of the goats of the industry💥
@joshswanson0
@joshswanson0 6 ай бұрын
The GOAT!
@Cxntrxl
@Cxntrxl 10 ай бұрын
huge tip - record your voice overs in a less reflective space massively improves audio quality for a fairly simple fix cheapest way to do it is to cover tiles/glass with fabric while you record if you can't move your setup as easily. Might also benefit to invest in a shotgun mic.
@GoldenDevs
@GoldenDevs 10 ай бұрын
Thank you for the tip man, I already got a semi decent mic. Hope you've subbed, I'm working on something fun👌
@vivekbarjod6815
@vivekbarjod6815 10 ай бұрын
Great work Bro ! loved your video !
@GoldenDevs
@GoldenDevs 10 ай бұрын
Glad you liked it!
@smarttarded
@smarttarded 10 ай бұрын
Tip 26 and 47 was really helpful
@dilshadjawed6886
@dilshadjawed6886 10 ай бұрын
Bro your videos are awesome continue this
@Bezimienny
@Bezimienny 10 ай бұрын
For the love of all that is holy, don't use Invoke.
@Zalmakiz
@Zalmakiz 10 ай бұрын
the best unity tip i can give is: uninstall.
@alperensisman6002
@alperensisman6002 10 ай бұрын
İts look like breckly videos but you should change your cam :D
@anxl2191
@anxl2191 10 ай бұрын
Dani you've changed, welcome back XD
@WirkZeb
@WirkZeb 10 ай бұрын
Useful tips , thanks!
@Kenishura
@Kenishura 10 ай бұрын
Awesome I'll let my neighbor Jeremy know
@MajesticMindGames
@MajesticMindGames 10 ай бұрын
Nice video, nice channel. Useful actinable stuff. Thanks and keep it up.
@GoldenDevs
@GoldenDevs 10 ай бұрын
My pleasure, happy you liked it!
@SudhirKumar-st2ne
@SudhirKumar-st2ne 10 ай бұрын
hi i am using ads in my unity game can you tell me where i can put com.google.android.gms.permission.AD_ID code
@TREXYT
@TREXYT 10 ай бұрын
Cool :)
@astrahcat1212
@astrahcat1212 10 ай бұрын
'Invoke' is reflection 🤔🤔
@mlavinb
@mlavinb 10 ай бұрын
Thanks for sharing! great video!
@paulglosemeyer2451
@paulglosemeyer2451 10 ай бұрын
Bro's filming with a nokia
@GoldenDevs
@GoldenDevs 10 ай бұрын
Haha, The og nokias don't have cameras
@DevDunkStudio
@DevDunkStudio 10 ай бұрын
4.1 for better invoke performance use async