Unity on Windows 8.1
http://aka.ms/Unity4win






2
Windows 8
1 億以上のライセンス
ストアに 10 万アプリ以上
2.5 億以上のダウンロード
200 ヶ国以上で提供

Windows 8.1
Windows 8 と RT向けに無償提供
2013 年 10 月 18日リリース
より多くのデバイス サポート
Windows 8.1 プラットフォーム

5




6
Orcs Must Survive
Drift Mania Championship 2
Pettson's Inventions
Gunpowder
Rumpelstiltskin 3D
Snow White Prequel
Razor Salvation
Siegecraft
Qbism
Hungry MonstR
Fling Theory
Experiment HD など

7
8






9
Unity

Windows

コンテンツ

ストアアプリ用

作成

にビルド

アプリの仕上げ
Windows
固有の機能の

パッケージ

Windows

作成

ストアへ申請

実装

10


11
Remote Tools for Visual Studio 2013 (ARM)
http://go.microsoft.com/?linkid=9832099

12


13
• HTML タグ、コントロールによる簡単な配置
• pubCenter による海外の税金処理など
• インプレッション課金
http://adsinapps.microsoft.com/ja/sdk
14
Assets¥Plugins

Assets¥Plugins¥Metro

15
開発者登録
 マイクロソフト アカウントを使用
 年間登録費用
 個人 : 1,847 円
 法人 : 9,800 円
 クレジットカードでの支払い

https://appdev.microsoft.com/storePortals/

16


17







aonishi@microsoft.com
18









http://bit.ly/UnityOnWindows8
http://www.bitrave.com/azure-mobile-services-for-unity-3d/
http://scan.xamarin.com/

http://aka.ms/8store
http://msdn.microsoft.com/ja-jp/hh455217.aspx
http://www.microsoft.com/ja-jp/mic/bizspark/default.aspx
19
http://bit.ly/WAMobileService
22
Unity から Windows Azure Mobile
Services へアクセスするプラグイン
Windows 8, Windows Phone 8 対応
iOS, Android 対応予定
Plugins
Metro

Bitrave.Azure.dll
Newtonsoft.Json.dll (net20)
RestSharp.dll (net35-client)
Bitrave.Azure.dll
RestSharp.dll
Newtonsoft.Json.dll (net45)
23
24
/*CriAtomSouceを取得*/
CriAtomSource atom_src = selectedGameObject.GetComponent<CriAtomSource>();
/* 再生開始*/
atom_src.Play();
25
Windows ストア アプリの展開
アプリ パッケージ
の作成

アプリ パッケージ
の登録

Windows ストア
での公開

26


27
Windows App Certification Kit
http://msdn.microsoft.com/en-us/windows/apps/bg127575
28
Assets¥Plugins

Assets¥Plugins¥Metro
プラグインの作成

このファイルに WinRT API を使った
機能を実装

WinRT 用クラスライブラリで作成した
ファイルのショートカットを作成
1. プロジェクトを右クリック→追加→既存の項目
2. UnityWinRTPluginのLiveTile.csを選択
3. ダイアログの追加ボタンで
“リンクとして追加”を選択
これにより、同じファイルを利用
プラグインの使い道
Windows ストアアプリ側で使用
(ストアアプリプロジェクトに追加)
Build した後に実行されるコード
Windows ランタイム (.NET 4.5レベル)
Unity プロジェクト側 で使用
(Unity Editor 内は .NET 3.5 レベル)
条件コンパイルを利用し、Unity Editor 内で
動作しないコードは含めないこと

それぞれのライブラリー
を
同じアセンブリ名、
同じ名前空間にすること
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#if NETFX_CORE
using Windows.UI.Notifications;
#endif
namespace UnityWinRTPlugin
{
public class LiveTile
{
public bool UpdateTile(string title, string text)
{
#if NETFX_CORE
var tile = TileUpdateManager.GetTemplateContent(TileTemplateType.TileSquareText02);
var elements = tile.GetElementsByTagName("text");
elements[0].AppendChild(tile.CreateTextNode(title));
elements[1].AppendChild(tile.CreateTextNode(text));
TileUpdateManager.CreateTileUpdaterForApplication().Update(new TileNotification(tile));
#endif
return true;
}
}
}
Pluginsフォルダに
Metro
という名前で
サブフォルダー作成
DLLファイル
をコピー
“External Script Editor”を
"Browse…" からエクスプ
ローラーを呼び出し、
devenv.exe を指定して、
“Visual Studio 2012”に設定
using UnityWinRTPlugin;

LiveTile tile = new LiveTile();
tile.UpdateTile(
“Fire!”,
DateTime.Now.ToShortTimeString());
Unity on Windows 8.1

Unity on Windows 8.1