Category Archives: Unity3d

Debug Windows Phone Unity Codes

Debug Windows Phone Unity Codes

1 – Build Visual Studio project for Windows Phone (File -> Build Settings -> Build).
2 – Open Generated Visual Studio Project.
3 – Click FILE -> Add -> Existing Project, navigate to Unity project folder and select Assembly-CSharp.csproj file.
4 – Go to BUILD -> Configuration Manager and make sure ARM platform is selected for your project.
5 – Optionally uncheck Build flag for Assembly-CSharp since it has already been built by Unity.
6 – Add breakpoint(s) to your script file(s).
7 – Make sure phone is connected to PC and Wphone Screen is unlocked.
8 – Make sure debugger type is set to Managed Only (default).
9 – Hit F5 to build, deploy, run and debug your app.

Unity Take Screenshot in Editor

Take Screenshot in Unity3d

using UnityEngine;
using System.Collections;
using System;

public class ScreenShoter : MonoBehaviour
{
    public KeyCode screenShotKeyCode;
	public string filePath;
    void Update()
    {
        if (Input.GetKeyDown(screenShotKeyCode))
        {
            Application.CaptureScreenshot(string.Format("{0}\\ss_{1}x{2}_{3}.jpg",
filePath,Screen.width,Screen.height,System.DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalSeconds));
        }
    }
}

First IOS Build with Unity3d

First IOS Build with Unity3d

1.1.Buy apple developer licence.
1.2.You need to be apple developer certificate = > http://www.youtube.com/watch?v=HlRI30F6-Ek
1.3.Plug your test device on Imac.
1.4.You need to add your test device(Iphone,Ipad) other way provisioning on an IOS Device => http://www.youtube.com/watch?v=mX4v9A2bpjs
1.5.Download xcode and setup.
1.6.Start unity and File ->click build and run

First Build is Ready.