SlideShare a Scribd company logo
1 of 45
Unity講座第一回
世界を作る
標準機能のみを使って世界をつくります
聖書になぞらえた順番でやってみましょう
第一日目
神は光と闇を区別された
光源
ものを見るうえで一番大切な光を表現する
光を発するものを光源といい、太陽や電球など
Unityにはいくつかの光源が用意させれていてそれぞれ特徴がある
Unityの光源の種類
Directional light…太陽のように世界全体に光を降り注がせる光源
Point light …豆電球のように360の方向に光を放つ光源
Spot light …スポットライト、一方方向に光を放つ光源
昼を表現
ツールバーのGame Object→Light→Directional lightを選択
ヒエルラキーの中を確認してDirectional lightがあるかを確認し、ダ
ブルクリックする
→シーンビューに画像のようなものがあればOk
第二日目
神は大空を創った
SkyBox
Unityで作られた世界はSkyBoxという箱の中にある
SkyBoxに画像を貼り付けることで空や宇宙を表現できる
SkyBoxに空を貼り付ける
SkyBoxに張り付ける画像がProjectに入っていないので持ってくる
必要がある
今回は標準のものを使用
Assets→Import Package→Skyboxes を
選択
画像のような画面が表示されたらImportを
クリック
SkyBox空を貼り付ける
ツールバーのEdit→Render Settingsを選択
インスペクターにRender Settingsが表示されたらSkybox Materialを
探す
Skybox Materialの項目の右端に小さな丸があるのでクリック
新たにWindowが出てくるのでその中からSunny1 Skyboxを選択
※次のページの図を参照
Skyboxに空を貼り付ける
第三日目
神は陸と海を創った
Terrain
Unityで複雑な大地を表現するときはTerrainを使用する
Terrain一つで広大な大地を作ることが可能
Terrainの使用
ツールバーよりGame Object→3D Object→Terrainを選択
ヒエルラキーにTerrainが表示されると同時にProjectにTerrainが作
られる
ゲームビューの中でTerrainをクリックすることで変化させる
設定をする前に草木のモデルをインポートする
ツールバーよりAssets→Import Package→Terrain Assets
Terrainの使用
Terrainの機能は以下のものがある、これらは画像に表示するボタ
ンによって切り替え可能
次のページから画像の左から順番に説明する
Terrainの使用
Raise …クリックすることで山の高さを変更
Paint height …クリックした場所の山の高さを、設定した値にする
Smooth Height…クリックした場所の高低差を滑らかにする
Paint Texture …Terrainの色を塗る
Place Trees …木を植える
Paint Details …花や草を生やす
Raise
クリックすることで山の高さが高くなる
Shift+クリックで山の高さが低くなる
Brushesの項目でクリックしたときに変わる場所の形状が変化する
settingの項目のBrush Sizeでクリックしたときの変化する範囲を変
更できる
Opacityで一度のクリックでの変化量が変わる
Paint height
クリックするたび設定された、山の高さに近づく
SettingのHeightで、高さを変更できる
Flattenのボタンを押すと山の高さがすべてが0になる
他はRaiseと同じ
Smooth Height
クリックした場所の高さを滑らかにする
項目はRaiseと同じ
Paint Texture
クリックした場所のTerrainに色を付ける
Textureはいくつも追加可能
一番最初に追加したTextureが下地になる
※作り方は次のページを参照
Target StrengthでTextureの透明度が設定でき下の色と重ねられる
Paint Texture
使い方はTexturesの項目のEdit Textures...をクリックしてAdd
Textureを選択
図のような画面が出たらTextureと書かれているほ
うの四角のSelectをクリック
Texture一覧からGood Dirtを選択
Addをクリック
Place Trees
クリックした場所に木を植える
Edit Treesをクリックすることで、木を追加し木を植えられるようにな
る
※追加の仕方は次のページを参照
Tree Density…一回のクリックで植えられる木の数を変化させる
それ以外は最初のうちはあまりいじらない
Place Trees
Edit Trees...からAdd Treeをクリック
Treeの項目の右端の丸をクリック
新しく開いたウィンドウからPalmを選択
Addをクリック
Paint Details
クリックした場所に草を生やす
Target Strength…一度に生える草の量
を変化させる
木と同様に草を追加しなければ生やせない
Edit Details...→Add Grass Textureを選択
Detail Textureの項目の右端の丸をクリック
新しく出てきたウィンドウよりGrassを選択
Addをクリック
水面を表現
湖を作るためのへこみを用意
Assets→Import Package→Water(Basic)を選択
水面を表現
ProjectのAssets→Standard Assets→Water(Basic)を開く
Daylight Simple Water.prefabをドラックアンドドロップでシーンビュー
にもっていく
座標を移動して、作ったへこみにもっていく
大きさを変更
第四日目
神は太陽と月と星を創った
球体を作る
Unityにいくつかの3D Objectが用意されている
今回は球体を作る
ツールバーよりGame Object→3D Object→Sphereを選択
インスペクターのTransformの各項目を次のように変更
色を付ける
ProjectをAssets直下にする
Assets→Create→Materialを選択し、名前を決める
色を付ける
Projectに今作ったマテリアルがあるのでクリックする(図のようなア
イコン)
インスペクターの中からMain Colorの白い四角を選択
新たにウィンドウが出てくるので色を選ぶ
新しいウィンドウのとこ以外を適当にクリック
色を付ける
マテリアルのアイコンを作ったSphereにドラッグアンドドロップ
次のページの図を参照
Sphereをダブルクリックすると作ったSphereが画面の真ん中に表示
されるようになるので色がついているか確認
色を付ける
第五日目
神は海の生き物と空の生き物を創った
Asset Storeを利用する
AssetStoreを開く
右側の分類一覧から3Dモデルを選択
3Dモデルの目次の中からキャラクターを選択
キャラクターの目次の中から動物を選択
動物の目次の中から魚を選択
Humpback Whaleを探し選択
Asset Storeを利用する
ダウンロードをクリックする
Import Packageのウィンドウが表示されるのでImportをクリック
ProjectにHumpback Whaleというフォルダができているので開く
humpback whale model23.FBXをシーンビューにドラッグアンドドロッ
プ
作った湖に配置
大きさを(10,10,10)にする
第六日目
神は地上の生き物と、人間を創った
TPSを配置
TPSとは…Third Person Shooterの略称で、画面の中に人形がいて
それを操るもの
Unityにも用意されている
Assets→Import Package→Character Controllerを選択
Standard Assetsの中にCharacter Controllersが出来てるので開く
3rd Person Controller.prefabをシーンの中にドラッグアンドドロップ
座標を(1000,750,1000)に変更
TPSの配置
ヒエルラキーの3rd Person Controllerを選択してインスペクターの
中からThird Person Controller(Script)という項目を探す
IdleAnimationの右側の丸をクリックしidleを選択
Walk Animationの右側の丸をクリックしwalkを選択
Run Animationの右側の丸をクリックしrunを選択
Jump Pose Animationの右側の丸をクリックしをjump_poseを選択
※次のページの画像を参照
第七日目
神は休まれた
実行する
実行ボタンをクリックして、実行してみましょう
素敵な世界ができましたか?
W,A,S,Dの各キーで移動スペースでジャンプShiftを押しながらだと
はしります
END

More Related Content

Featured

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Unity講座差第一回