unity3d tips and tricks or "you are doing it wrong!"
DESCRIPTION
Presentation about small tips how to improve your efficiency when working with #Unity3D game engine.TRANSCRIPT
![Page 1: Unity3D Tips and Tricks or "You are doing it wrong!"](https://reader034.vdocuments.us/reader034/viewer/2022052504/54b4bfe64a7959d8788b463a/html5/thumbnails/1.jpg)
Unity3D Tips and Tricks or
“You are doing it wrong!”
Taras Leskiv
Unity3D Developer
![Page 2: Unity3D Tips and Tricks or "You are doing it wrong!"](https://reader034.vdocuments.us/reader034/viewer/2022052504/54b4bfe64a7959d8788b463a/html5/thumbnails/2.jpg)
My experience
■ Plumber Bob
![Page 3: Unity3D Tips and Tricks or "You are doing it wrong!"](https://reader034.vdocuments.us/reader034/viewer/2022052504/54b4bfe64a7959d8788b463a/html5/thumbnails/3.jpg)
1. You don’t configure your
Xamarin Studio/MonoDevelop
■ In the perfect world (we all like to dream):
+ +
![Page 4: Unity3D Tips and Tricks or "You are doing it wrong!"](https://reader034.vdocuments.us/reader034/viewer/2022052504/54b4bfe64a7959d8788b463a/html5/thumbnails/4.jpg)
1. You don’t configure your
Xamarin Studio/MonoDevelop
■ Problem – no iOS deployment.
■ You probably do this
■ When opened MonoDevelop the first time my reaction was like this:
(I am former Intellij Idea user)
– How does this IDE differ from text editor?
or more likely this
![Page 5: Unity3D Tips and Tricks or "You are doing it wrong!"](https://reader034.vdocuments.us/reader034/viewer/2022052504/54b4bfe64a7959d8788b463a/html5/thumbnails/5.jpg)
1. You don’t configure your
Xamarin Studio/MonoDevelop
■ Do your homework and configure it! All you need is disabled by default.
■ Use Monokai syntax highlighting! Why? More colors.
![Page 6: Unity3D Tips and Tricks or "You are doing it wrong!"](https://reader034.vdocuments.us/reader034/viewer/2022052504/54b4bfe64a7959d8788b463a/html5/thumbnails/6.jpg)
1. You don’t configure your
Xamarin Studio/MonoDevelop
■ Do your homework – it is not that bad.
![Page 7: Unity3D Tips and Tricks or "You are doing it wrong!"](https://reader034.vdocuments.us/reader034/viewer/2022052504/54b4bfe64a7959d8788b463a/html5/thumbnails/7.jpg)
2. You drag windows all over the
screen!
■ Use layouts!
![Page 8: Unity3D Tips and Tricks or "You are doing it wrong!"](https://reader034.vdocuments.us/reader034/viewer/2022052504/54b4bfe64a7959d8788b463a/html5/thumbnails/8.jpg)
2. You drag windows all over the
screen!
■ Rearrange items wisely
![Page 9: Unity3D Tips and Tricks or "You are doing it wrong!"](https://reader034.vdocuments.us/reader034/viewer/2022052504/54b4bfe64a7959d8788b463a/html5/thumbnails/9.jpg)
3. You make variables public to
see them in the inspector!
■ Debug mode
■ Minor stuff :
– Lock inspector view
– Ctrl (cmd) + D, ctrl + shift + N, ctrl + alt + N
– Snapping
![Page 10: Unity3D Tips and Tricks or "You are doing it wrong!"](https://reader034.vdocuments.us/reader034/viewer/2022052504/54b4bfe64a7959d8788b463a/html5/thumbnails/10.jpg)
4. You copy and paste component
values manually!
![Page 11: Unity3D Tips and Tricks or "You are doing it wrong!"](https://reader034.vdocuments.us/reader034/viewer/2022052504/54b4bfe64a7959d8788b463a/html5/thumbnails/11.jpg)
5. You don’t use attributes!
■ [Range(-1, 1)] – int, float
■ [RequireComponent(typof(SomeType))]
■ [ExecuteInEditMode]
![Page 12: Unity3D Tips and Tricks or "You are doing it wrong!"](https://reader034.vdocuments.us/reader034/viewer/2022052504/54b4bfe64a7959d8788b463a/html5/thumbnails/12.jpg)
6. You have a lot of objects in
your scene that are not prefabs!
■ Every distinct object should be prefab – make every gameobject a prefab,
exception – empty objects as folders (benefits – no scene changes)
■ Link prefabs to prefabs – move your connections out of the scene
■ Establish links at programmatically where possible.
![Page 13: Unity3D Tips and Tricks or "You are doing it wrong!"](https://reader034.vdocuments.us/reader034/viewer/2022052504/54b4bfe64a7959d8788b463a/html5/thumbnails/13.jpg)
7. You are nesting prefabs!
■Just NEVER do this – build your
hierachy of prefabs at runtime.
(Child prefabs just becomes a
part of its parent prefab)
![Page 14: Unity3D Tips and Tricks or "You are doing it wrong!"](https://reader034.vdocuments.us/reader034/viewer/2022052504/54b4bfe64a7959d8788b463a/html5/thumbnails/14.jpg)
8. You do not take advantage of
icons!
■ Distinguish scripts – color libs.
■ Mark scripts – Interfaces, abstract and static classes
![Page 15: Unity3D Tips and Tricks or "You are doing it wrong!"](https://reader034.vdocuments.us/reader034/viewer/2022052504/54b4bfe64a7959d8788b463a/html5/thumbnails/15.jpg)
8. You do not take advantage of
icons!
■ Make custom icons for objects in scene you have to find frequently.
![Page 16: Unity3D Tips and Tricks or "You are doing it wrong!"](https://reader034.vdocuments.us/reader034/viewer/2022052504/54b4bfe64a7959d8788b463a/html5/thumbnails/16.jpg)
9. You don’t use .asset files to
store data!