Unity3d

unity3d

#unity3d

Table of Contents

About

1

Chapter 1: Getting started with unity3d

2

Remarks

2

Versions

2

Examples

5

Installation or Setup

5

Overview

5

Installing

6

Installing Multiple Versions of Unity

6

Basic editor and code

6

Layout

6

Linux Layout

7

Basic Usage

7

Basic Scripting

8

Editor Layouts

8

Customizing Your Workspace

10

Chapter 2: Ads integration

13

Introduction

13

Remarks

13

Examples

13

Unity Ads Basics in C#

13

Unity Ads Basics in JavaScript

14

Chapter 3: Android Plugins 101 - An Introduction

15

Introduction

15

Remarks

15

Beginning with Android plugins

15

Outline to creating a plugin and terminology

15

Choosing between the plugin creation methods

16

Examples

16

UnityAndroidPlugin.cs

16

UnityAndroidNative.java

16

UnityAndroidPluginGUI.cs

16

Chapter 4: Asset Store

18

Examples

18

Accessing the Asset Store

18

Purchasing Assets

18

Importing Assets

19

Publishing Assets

19

Confirm the invoice number of one purchase

19

Chapter 5: Attributes

21

Syntax

21

Remarks

21

SerializeField

21

Examples

22

Common inspector attributes

22

Component attributes

24

Runtime attributes

25

Menu attributes

26

Editor attributes

28

Chapter 6: Audio System

32

Introduction

32

Examples

32

Audio class - Play audio

32

Chapter 7: Collision

33

Examples

33

Colliders

33

Box Collider

33

Properties

33

Example

34

Sphere Collider

34

Properties

34

Example

35

Capsule Collider

35

Properties

36

Example

36

Wheel Collider

36

Properties

36

Suspension Spring

37

Example

37

Mesh Collider

37

Properties

38

Example

39

Wheel Collider

39

Trigger Colliders

41

Methods

41

Trigger Collider Scripting

41

Example

41

Chapter 8: Communication with server

43

Examples

43

Get

43

Simple Post (Post Fields)

43

Post (Upload A File)

44

Upload A Zip File To Server

44

Sending a request to the server

44

Chapter 9: Coroutines

47

Syntax

47

Remarks

47

Performance considerations

47

Reduce garbage by caching YieldInstructions

47

Examples

47

Coroutines

47

Example

49

Ending a coroutine

49

MonoBehaviour methods that can be Coroutines

50

Chaining coroutines

51

Ways to yield

53

Chapter 10: CullingGroup API

55

Remarks

55

Examples

55

Culling object distances

55

Culling object visibility

57

Bounding distances

58

Visualising bounding distances

58

Chapter 11: Design Patterns

60

Examples

60

Model View Controller (MVC) Design Pattern

60

Chapter 12: Extending the Editor

64

Syntax

64

Parameters

64

Examples

64

Custom Inspector

64

Custom Property Drawer

66

Menu Items

69

Gizmos

73

Example One

74

Example two

75

Result

76

Not selected

76

Selected

77

Editor Window

78

Why an Editor Window?

78

Create a basic EditorWindow

78

Simple Example

78

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download