17
Unity3D Tips and Tricks or “You are doing it wrong!” Taras Leskiv Unity3D Developer

Unity3D Tips and Tricks or "You are doing it wrong!"

Embed Size (px)

DESCRIPTION

Presentation about small tips how to improve your efficiency when working with #Unity3D game engine.

Citation preview

Page 1: Unity3D Tips and Tricks or "You are doing it wrong!"

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!"

My experience

■ Plumber Bob

Page 3: Unity3D Tips and Tricks or "You are doing it wrong!"

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!"

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!"

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!"

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!"

2. You drag windows all over the

screen!

■ Use layouts!

Page 8: Unity3D Tips and Tricks or "You are doing it wrong!"

2. You drag windows all over the

screen!

■ Rearrange items wisely

Page 9: Unity3D Tips and Tricks or "You are doing it wrong!"

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!"

4. You copy and paste component

values manually!

Page 11: Unity3D Tips and Tricks or "You are doing it wrong!"

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!"

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!"

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!"

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!"

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!"

9. You don’t use .asset files to

store data!

Page 17: Unity3D Tips and Tricks or "You are doing it wrong!"

Questions

Taras Leskiv

Unity3D Developer

developers.nravo.com

[email protected]

@tarasleskiv