Submit Search
知って得するUnity
44 likes
13,070 views
Shota Baba
1 of 52
Download now
Downloaded 73 times
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
More Related Content
PDF
㉖cocos2dを覚えよう!
Nishida Kansuke
PDF
知って得するC#
Shota Baba
PDF
知って得するC# LINQ to Objects編
Shota Baba
PDF
Unity で実装するエイジングテストのお話
Shota Baba
PDF
【Visual Studio】開発効率を上げる25個の拡張機能
Shota Baba
PDF
Unity エディタ拡張
Shota Baba
PDF
知って得するUnity エディタ拡張編
Shota Baba
PDF
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
㉖cocos2dを覚えよう!
Nishida Kansuke
知って得するC#
Shota Baba
知って得するC# LINQ to Objects編
Shota Baba
Unity で実装するエイジングテストのお話
Shota Baba
【Visual Studio】開発効率を上げる25個の拡張機能
Shota Baba
Unity エディタ拡張
Shota Baba
知って得するUnity エディタ拡張編
Shota Baba
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
Featured
(20)
PDF
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
PDF
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
PDF
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
PDF
2024 State of Marketing Report – by Hubspot
Marius Sescu
PDF
Everything You Need To Know About ChatGPT
Expeed Software
PDF
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
PDF
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
PDF
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
PDF
Skeleton Culture Code
Skeleton Technologies
PDF
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
PDF
Content Methodology: A Best Practices Report (Webinar)
contently
PPTX
How to Prepare For a Successful Job Search for 2024
Albert Qian
PDF
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
PDF
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
PDF
5 Public speaking tips from TED - Visualized summary
SpeakerHub
PDF
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
PDF
Getting into the tech field. what next
Tessa Mero
PDF
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
PDF
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
PDF
Introduction to Data Science
Christy Abraham Joy
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Christy Abraham Joy
知って得するUnity
1.
知って得する Unity 株式会社ハ・ン・ド プログラマ 馬場翔太 http://baba-s.hatenablog.com/
2.
スライド内容 1. エディタの操作について 2. エディタの拡張について 3.
アセットの活用について
3.
エディタの操作
4.
private変数の状態を確認したい public class Character
: MonoBehaviour { private int id = 1; private string name = "Mike"; }
5.
private変数をInspectorに表示する Inspectorの右上のボタンからDebugを選択 http://terasur.blog.fc2.com/blog-entry-252.html
6.
エディタ停止を忘れて作業をしてしまった
7.
エディタ再生時の色を変える 1. 「Unity>Preference...」を選択する 2. 「Colors>Genreal>Playmode
tint]の色を変更する http://terasur.blog.fc2.com/blog-entry-252.html
8.
ログを出力したオブジェクトを特定したい private void Start() { Debug.Log("Start"); }
9.
ログを出力したオブジェクトを選択 第二引数にオブジェクトやコンポーネントを渡す private void Start() { Debug.Log("Start",
this); }
10.
オブジェクトをキレイに配置したい
11.
オブジェクトの移動や回転でスナップ Ctrlキーを押しながら移動や回転をさせるとスナップ可能 スナップする量は「Edit>Snap Settings...」で設定可能
12.
深い親子階層を一気に開きたい Altキーを押しながらアイテムの親子関係を開く
13.
Projectビューで特定のアセットのみ表示 検索欄の右のボタンで表示したいアセットの種類を選択
14.
オブジェクトやアセットを複製したい 複製したいアイテムを選択してCtrl+D (アセットなら連番の適用も可能)
15.
エディタの拡張
16.
アセットの設定変更を効率化したい • テクスチャの種類をGUIに • AudioClipの3Dサウンドをオフに
17.
アセットインポート時に設定を自動変更 using UnityEditor; public class
AssetPreprocessor : AssetPostprocessor { private void OnPreprocessTexture() { var importer = assetImporter as TextureImporter; importer.textureType = TextureImporterType.GUI; } private void OnPreprocessAudio() { var importer = assetImporter as AudioImporter; importer.threeD = false; } } http://www.buildinsider.net/consumer/charmofunity/01 http://kan-kikuchi.hatenablog.com/entry/2013/11/25/000144
18.
アセットインポート時に設定を自動変更 AssetPostprocessorクラス 継承してクラスを記述することで アセット読み込み時の独自の処理を実装できます using UnityEditor; public class
AssetPreprocessor : AssetPostprocessor { } http://www.buildinsider.net/consumer/charmofunity/01 http://kan-kikuchi.hatenablog.com/entry/2013/11/25/000144
19.
アセットインポート時に設定を自動変更 OnPreprocessTexture関数 テクスチャがインポートされた時に呼び出されます private void OnPreprocessTexture() { var
importer = assetImporter as TextureImporter; importer.textureType = TextureImporterType.GUI; } http://www.buildinsider.net/consumer/charmofunity/01 http://kan-kikuchi.hatenablog.com/entry/2013/11/25/000144
20.
アセットインポート時に設定を自動変更 OnPreprocessAudio関数 AudioClipがインポートされた時に呼び出されます private void OnPreprocessAudio() { var
importer = assetImporter as AudioImporter; importer.threeD = false; } http://www.buildinsider.net/consumer/charmofunity/01 http://kan-kikuchi.hatenablog.com/entry/2013/11/25/000144
21.
再生中にスクリプトを編集してエラーに 再生中にスクリプトを編集して保存すると コンパイル後にエラーが出力される
22.
スクリプト編集後に実行を自動で停止 [InitializeOnLoad] public static class
PlaymodeStop { static PlaymodeStop() { EditorApplication.update += Update; } private static void Update() { if ( EditorApplication.isCompiling && EditorApplication.isPlaying) { EditorApplication.isPlaying = false; } } } http://masa795.hatenablog.jp/entry/2013/05/10/104033
23.
スクリプト編集後に実行を自動で停止 InitializeOnLoad属性 staticコンストラクタを持つクラスに記述すると エディタ起動時に独自のスクリプトを実行できる [InitializeOnLoad] public static class
PlaymodeStop { static PlaymodeStop() { } } http://masa795.hatenablog.jp/entry/2013/05/10/104033
24.
スクリプト編集後に実行を自動で停止 EditorApplication.update エディタで再生中に毎秒約100回呼ばれるコールバック static PlaymodeStop() { EditorApplication.update +=
Update; } http://masa795.hatenablog.jp/entry/2013/05/10/104033
25.
スクリプト編集後に実行を自動で停止 EditorApplicationクラス スクリプトがコンパイルされたかどうかや エディタが再生中かどうかを確認できるクラス private static void
Update() { if ( EditorApplication.isCompiling && EditorApplication.isPlaying) { EditorApplication.isPlaying = false; } } http://masa795.hatenablog.jp/entry/2013/05/10/104033
26.
アセットの活用
27.
手順を効率化したい • Project Settingsの設定 •
ゲームオブジェクトの作成
28.
ショートカットを追加する Extras Toolbar(無料) http://masa795.hatenablog.jp/entry/2013/06/14/094537
29.
ショートカットを追加する 「Window>Extras」を選択 http://masa795.hatenablog.jp/entry/2013/06/14/094537
30.
配列をコンソールログに出力したい // 標準のコンソール出力 var array
= new []{ "1", "2", "3", “4", “5", }; Debug.Log(array);
31.
配列をコンソールログに出力する Quick Debugger(無料) http://terasur.blog.fc2.com/blog-entry-211.html
32.
配列をコンソールログに出力する // Quick Debuggerのコンソール出力 var
array = new []{ "1", "2", "3", “4", “5", }; Debugger.Array<string>(array); http://terasur.blog.fc2.com/blog-entry-211.html
33.
配列をコンソールログに出力する 二次元配列やコレクションも出力可能 // 二次元配列 Debugger.Array2D<string>(array); // List型 Debugger.List<string>(list); //
Dictionary型 Debugger.Dictionary<int, string>(dict); http://terasur.blog.fc2.com/blog-entry-211.html
34.
オブジェクトのパラメータを間違って変更
35.
GameObjectをロック UnityLock(無料) http://terasur.blog.fc2.com/blog-entry-487.html
36.
GameObjectをロック 1. ロックしたいオブジェクトを選択 2. 「GameObject>UnityLock>Lock
GameObject」を選択 http://terasur.blog.fc2.com/blog-entry-487.html
37.
アプリサイズのボトルネックを見つけたい テクスチャ AudioClip モデル
38.
アプリサイズの内訳を確認 Build Report Tool($5) http://terasur.blog.fc2.com/blog-entry-472.html http://plaza.rakuten.co.jp/coronasdk/diary/201305230001/
39.
アプリサイズを確認
40.
使用しているアセットの容量を確認
41.
使用していないアセットの確認と削除
42.
簡単に動きをつける iTween(無料) http://www40.atwiki.jp/spellbound/pages/1604.html
43.
エディタ上でiTweenを設定する iTween Visual Editor(無料) http://www.cho-design-lab.com/2013/08/07/unity-itween-visual-editor-introduction
44.
アプリの解読や改ざんを防ぐ CodeGuard($40) http://masa795.hatenablog.jp/entry/2013/06/29/131336
45.
フォトショのデータをNGUIにインポート FastGUI for NGUI($20) http://terasur.blog.fc2.com/blog-entry-337.html
46.
エディタ再生中に変更した値を保持する PlayModePersist($20) http://terasur.blog.fc2.com/blog-entry-578.html
47.
ドローコールを減らす Draw Call Minimizer(無料) http://terasur.blog.fc2.com/blog-entry-214.html
48.
オススメのパーティクルシステム "Shuriken Magic" Effect
Pack($35) http://memo.scri.me/entry/2013/02/09/002415
49.
オススメの3Dモデル First Fantasy for
Mobile($20)
50.
オススメの3Dモデル Low Poly Fantasy
Village Pack.01($20)
51.
オススメの3Dモデル Palace of Orinthalian(無料)
52.
ありがとうございました
Download