Presentation is loading. Please wait.

Presentation is loading. Please wait.

David, on using MonoDevelop David, on getting to edit and debug in Visual Studio.

Similar presentations


Presentation on theme: "David, on using MonoDevelop David, on getting to edit and debug in Visual Studio."— Presentation transcript:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15 David, on using MonoDevelop David, on getting to edit and debug in Visual Studio

16

17

18

19 Scripts for building app packages start msbuild /p:Configuration=Release /p:Platform="ARM" choice /t 5 /c yn /d y start msbuild /p:Configuration=Release /p:Platform="x86"

20

21 Tip #3 – Talking between Unity and the Windows Runtime Unity3D side C# public delegate void Win8ShowPopupFunc(string title, string desc, System.Action onDismiss); public delegate void Win8ShowYesNoPopupFunc(string title, string desc, System.Action onDismiss); public static Win8ShowPopupFunc _ShowPopup = null; public static Win8ShowYesNoPopupFunc _ShowPopup = null; Windows 8 side C# RRGMetroBridge._ShowPopup = ShowGenericPopup; RRGMetroBridge._ShowYesNoPopup = ShowYesNoPopup;

22

23 Tip #4 – Component caching BAD public class example: MonoBehavior { void Update() { transform.Translate(0, 0, 5); }

24 Tip #4 – Component Caching TERRIBLE public class example: MonoBehavior { void Update(){ for (int i = 0; I < 1000; ++i) { myTransform.Translate(0, 0, transform.position.z + 0.005f); }

25 Tip #4 – Component Caching GOOD public class example: MonoBehavior (Transform transform) { private Transform myTransform; void Awake(){ myTransform = transform; } void Update(){ myTransform.Translate(0, 0, 5); }

26

27 Tip #5 – GameObject pooling Instead of destroying GameObjects: gameObject.SetActive(false); MyPoolManager.AddToFreePool(gameObject); Instead of instantiating: GameObject = MyPoolManager.GetFreeObject(); SetupObjectDefaults(gameObject); gameObject.SetActive(true);

28

29

30

31

32

33

34

35

36

37

38


Download ppt "David, on using MonoDevelop David, on getting to edit and debug in Visual Studio."

Similar presentations


Ads by Google