Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Unity入門
Search
Ryu955
April 13, 2017
0
290
Unity入門
Ryu955
April 13, 2017
Tweet
Share
More Decks by Ryu955
See All by Ryu955
移行できそうでやりきれなかった 10年超えのシステムを葬るための戦略
ryu955
2
1k
Unity5.5.2環境構築
ryu955
0
72
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
GraphQLとの向き合い方2022年版
quramy
49
14k
Automating Front-end Workflow
addyosmani
1370
200k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.4k
Designing Experiences People Love
moore
142
24k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
Producing Creativity
orderedlist
PRO
347
40k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
Become a Pro
speakerdeck
PRO
29
5.5k
Why You Should Never Use an ORM
jnunemaker
PRO
59
9.5k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
21k
Transcript
Unityߨ࠲ #1 17/04/13
ࠓͷඪ
UnityॳΊͯ৮Δ
UnityॳΊͯ৮Δ Կ͕Ͱ͖Δͷ?
UnityॳΊͯ৮Δ Կ͕Ͱ͖Δͷ? Ͳ͏ͬͯ࡞Δͷ?
UnityॳΊͯ৮Δ Կ͕Ͱ͖Δͷ? Ͳ͏ͬͯૢ࡞͢Δͷ? Ͳ͏ͬͯ࡞Δͷ?
UnityॳΊͯ৮Δ Կ͕Ͱ͖Δͷ? Ͳ͏ͬͯૢ࡞͢Δͷ? Ͳ͏ͬͯ࡞Δͷ? Unityͷجຊతͳ͜ͱ
Unityͷجૅతͳ͜ͱΛཧղ͢Δ ඪ
ࠓͷΔ͜ͱ
Unityͬͯʁ Unityͷಛͬͯʁ Ͳ͏࡞Δͷʁ Ͳ͏͏ͷʁ
Unityͬͯʁ
ήʔϜΓ·͢ΑͶʁ
None
શ෦UnityͰ࡞ΒΕ͍ͯΔ
ήʔϜ։ൃϓϥοτϑΥʔϜ
UnityͰग़དྷΔ͜ͱ
Unityͷಛͬͯʁ
ಛ1:ߴ͍γΣΞ
ແྉΦϯϥΠϯήʔϜͷ্Ґ1000ͷ ։ൃϓϥοτϑΥʔϜ ใݩ: SourceDNAʢ2016ୈ1࢛ظʣ
ແྉΦϯϥΠϯήʔϜͷ্Ґ1000ͷ ։ൃϓϥοτϑΥʔϜ ใݩ: SourceDNAʢ2016ୈ1࢛ظʣ ্Ґ34%Unity
ಛ2:ϚϧνϓϥοτϑΥʔϜ
εϚϗΞϓϦ࡞ΔΜ͚ͩͲ iPhoneͱandroid྆ํͰग़͍ͨ͠
ैདྷͷํ๏ + + → →
ैདྷͷํ๏ + + → → 2खؒ
Unityͷ߹ + →
Unityͷ߹ + → ಉҰͷιʔείʔυͰ ྆ํϏϧυग़དྷΔ ϓϥάΠϯඞཁ͚ͩͲ
None
΄΅શͯͷͰར༻Ͱ͖Δ
ಛ3:๛ͳΞηοτ
3DϞσϧ͍͍ͨΜ͚ͩͲ 3DϞσϧ࡞ͬͨ͜ͱͳ͍
Ξηοτ = ୭͔͕࡞ͬͨήʔϜͷ෦
Ξηοτ͕ങ͑Δ
̏DϞσϧ͚ͩ͡Όͳͯ͘ ৭ʑചͬͯΔ
ಛ4:؆୯ʹήʔϜ͕࡞ΕΔ
ήʔϜ࡞Γ͍͚ͨͲ ϓϩάϥϛϯάۤखͩ͠େมͦ͏
ۄస͕͠ήʔϜΛ࡞Δ
“” σϞ ””
ϚοϓͳͲΦϒδΣΫτ࡞Δ ϘʔϧͷͨΓఆ นʹͨͬͨ࣌ͷఆ ಘදࣔ ো ͍Ζ͍ΖΔ͜ͱ͋Δ
θϩ͔Β࡞Δͷେม
ͩͱʁ
࡞࣌ؒ̍࣌ؒ͘Β͍
࡞࣌ؒ̍࣌ؒ͘Β͍ Unity্ͰϚεಈ͔ͯ͠ ͪΐͬͱϓϩάϥϛϯάॻ͍͚ͨͩ
͍ͦͦ·ͷ͕ ެࣜνϡʔτϦΞϧ
ߴ͍γΣΞ ϚϧνϓϥοτϑΥʔϜ ๛ͳΞηοτ ؆୯ʹήʔϜ͕࡞ΕΔ
Ͳ͏࡞Δͷʁ
ૉࡐ Unity ήʔϜ
Unity͕͍͍ײ͡ʹ ͬͯ͘ΕΔ ૉࡐ Unity ήʔϜ
Unityͷߟ͑ํ
ֶߍΛྫʹग़͢ͱ
ֶߍ ੜె ઌੜ ษڧ͢Δ तۀΛ͢Δ
ֶߍ ੜె ઌੜ ษڧ͢Δ तۀΛ͢Δ ੈք Ϟϊ ৼΔ͍
ੈք Ϟϊ ৼΔ͍ ϑΟʔϧυ Ϙʔϧ ճస ͖ͬ͞ͷήʔϜͩͱ
Scene Game Object Component ϑΟʔϧυ Ϙʔϧ ճస Unity༻ޠʹ͢ͱ
ੈք(Scene) Ϟϊ(GameObject)ͷू߹Ͱ ৼΔ͍(Component)Λ͍࣋ͬͯΔ
Ͳ͏͏ͷʁ
UnityΛ։͍ͯΈΑ͏
Newԡ͢
ᶃϓϩδΣΫτ໊ ᶄ ΫϦΤΠτ
։͍ͨ
ϨΠΞτΛม͑Δ ͓͢͢Ί
มΘͬͨ
UnityͷΠϯλʔϑΣʔε
ώΤϥϧΩʔ γʔϯϏϡʔ ήʔϜϏϡʔ ϓϩδΣΫτ Ϗϡʔ ΠϯεϖΫλʔ Ϗϡʔ
γʔϯϏϡʔ ήʔϜʹొ͢ΔΦϒ δΣΫτΛஔ
ϓϩδΣΫτϏϡʔ ϓϩδΣΫτͰ࡞͞ ΕΔશͯͷ߲Λදࣔ
ώΤϥϧΩʔ γʔϯϏϡʔʹొ ͢ΔϞϊΛදࣔ
ΠϯεϖΫλʔ બͯ͠ΔΦϒδΣΫτͷ ৄࡉใ
ήʔϜϏϡʔ γϡϛϨʔγϣϯ࣮ߦΛ දࣔ
࣮ࡍʹ࿔ͬͯΈΑ͏
None
Ϙʔϧ͕ग़ͨ
▶Λԡ͢ͱ ։࢝
ͳʹى͜Βͳ͍
ॏྗΛ͚ͭΔ
ᶃSphereΛબ ᶄ Add Component-> Physics -> Rigidbody ᶅ ▶
Ϙʔϧ͕མͪଓ͚Δ
চΛ࡞Δ
None
চ͕ग़དྷ͚ͨͲ Ϙʔϧ͕ΊΓࠐΜͰΔ
ϘʔϧͷҐஔΛͣΒ͢
ᶃSphereΛબ ᶄ Positionͷ Y࣠ͷΛม͑Δ
Ϙʔϧ͕ු͍ͨ
▶
Ϙʔϧ͕চʹམͪͨ
ϘʔϧΛόϯυͤ͞Δ
όϯυ༻ͷ৽͍͠ ϘʔϧΛ࡞Δ
ᶃSphere(1)ͷ໊લΛ boundʹม͑Δ ᶄ Positionͷ X࣠ͱY࣠ͷ Λม͑Δ
Ϙʔϧ͕ೋͭ ҧ͏Ґஔʹग़དྷͨ
ʲ͓͞Β͍ʳboundʹॏྗΛ͚ͭΔ
ᶃboundΛબ ᶄ Add Component-> Physics -> Rigidbody
όϯυͷಈ͖Λ࣋ͭ ૉࡐ(Material)Λͭ͘Δ
Project View -> Create -> Physic Material
ग़དྷͨ
ͶฦΓΛ ૿͢
ᶃϚςϦΞϧΛbound υϥοΫˍυϩοϓ ᶄ⾣
མԼ͚ͩ͢ΔϘʔϧͷྡʹ όϯυ͢ΔϘʔϧ͕Ͱ͖ͨ
ࠓͷ·ͱΊ
Unityͷجૅతͳ͜ͱΛཧղ͢Δ ඪ
Unityͬͯʁ Unityͷಛͬͯʁ Ͳ͏࡞Δͷʁ Ͳ͏͏ͷʁ ࠓͨ͜͠ͱ
UnityͷجૅΛཧղͨ͠
࣍ճҎ߱
#2 UnityComponentࢥߟ νϡʔτϦΞϧΛͬͯΈΔ #3 ֎෦ϓϥάΠϯͱ ΞηοτΛͬͯARͰ༡ΜͰݟΔ #4 ະఆ