码迷,mamicode.com
首页 > 移动开发 > 详细

unity与手机相关吧

时间:2015-01-25 13:56:17      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:ugui   animation   手机   visual studio   unity3d   

转载请注明出处:http://blog.csdn.net/u010019717

更全的内容请看我的游戏蛮牛地址:http://www.unitymanual.com/space-uid-18602.html  ??

Windows Phone Application and Store Image,Icon Sizes 

Application Image Sizes

FlipCycleTileLarge -> 691×336
FlipCycleTileMedium -> 336×336
FlipCycleTileSmall -> 159×159
IconicTileMediumLarge ->134×202
IconicTileSmall -> 71×110
ApplicationIcon -> 100×100

SplashScreenImage->768×1280
SplashScreenImageLandscapeLeft->768×1280
SplashScreenImageLandscapeRight->768×1280
SplashScreenImagePortrait->768×1280
SplashScreenImagePortraitUpsideDown ->768×1280

Store Image Sizes

App Icon -> 300×300
Screenshot(8 adet gerekmektedir.) -> 1280×768
Promototional Background ->1000×800
Promototional Square Icon ->358×358
Promototional Wide Icon ->358×173

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));
        }
    }
}

Unity3d First Android Build 

1)Install Jdk windows x86.You can download :JDK Download
2)Install Android SDK .You can find explanation : Android SDK
3)Create First Unity Project.
4)Connect to device
5)Unity -> File ->Build and Run .

First Project is Ready.

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.

??

unity与手机相关吧

标签:ugui   animation   手机   visual studio   unity3d   

原文地址:http://blog.csdn.net/u010019717/article/details/43113305

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!