unity与手机相关吧

转载请注明出处: 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.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值