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
Unity3D Tips and Tricks or
“You are doing it wrong!”
Taras Leskiv
Unity3D Developer
My experience
■ Plumber Bob
1. You don’t configure your
Xamarin Studio/MonoDevelop
■ In the perfect world (we all like to dream):
+ +
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
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.
1. You don’t configure your
Xamarin Studio/MonoDevelop
■ Do your homework – it is not that bad.
2. You drag windows all over the
screen!
■ Use layouts!
2. You drag windows all over the
screen!
■ Rearrange items wisely
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
4. You copy and paste component
values manually!
5. You don’t use attributes!
■ [Range(-1, 1)] – int, float
■ [RequireComponent(typof(SomeType))]
■ [ExecuteInEditMode]
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.
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)
8. You do not take advantage of
icons!
■ Distinguish scripts – color libs.
■ Mark scripts – Interfaces, abstract and static classes
8. You do not take advantage of
icons!
■ Make custom icons for objects in scene you have to find frequently.
9. You don’t use .asset files to
store data!