2016/01
2016/1Copyright(C) 2016 . All Rights Reserved 2
2016/1Copyright(C) 2016 . All Rights Reserved 3
} PlayMaker Unity
2016/1Copyright(C) 2016 . All Rights Reserved 4
Unity 5.2.3f1
PC Windows 8.1(7 )
PlayMaker https://www.assetstore.unity3d.com/jp/#!/content/368
1.7.8(1.8.0 )
2016/1Copyright(C) 2016 . All Rights Reserved 5
1. PlayMaker
2. -
3.
4.
5.
6.
7.
8. iTween
9.
10. 1
11. 2
12.
13. Add-On
2016/1Copyright(C) 2016 . All Rights Reserved 6
2016/1Copyright(C) 2016 . All Rights Reserved 7
}
◦
◦
◦
◦
◦
◦ PlayMaker
◦ C#
PlayMaker
2016/1Copyright(C) 2016 . All Rights Reserved 8
}
◦ /
◦ UI/
◦ iTween
◦ AI
◦ UnityEngine API
2016/1Copyright(C) 2016 . All Rights Reserved 9
}
◦ (Template Export
)
◦
◦
}
◦
◦
◦ PlayMaker
◦
◦ Tween
2016/1Copyright(C) 2016 . All Rights Reserved 10
} FSM ) UML
}
◦
◦
◦
◦ FSM
2016/1Copyright(C) 2016 . All Rights Reserved 11
}
◦
–
◦
–
)
◦
–
◦
– (Vector3 ) (float )
2016/1Copyright(C) 2016 . All Rights Reserved 12
} Asset Store PlayMaker
-
} Web Browser URL
◦ https://www.assetstore.unity3d.com/jp/#!/content/368
}
2016/1Copyright(C) 2016 . All Rights Reserved 13
}
2016/1Copyright(C) 2016 . All Rights Reserved 14
} PlayMaker 1.7.x
◦ 2016/1 PlayMaker
– 1.7.8.4:
– 1.8.0 beta: Unity5.3
◦ 1.7.8.4
} Unity PlayMaker
[PlayMaker]-[Welcome Screen]
2016/1Copyright(C) 2016 . All Rights Reserved 15
} Install PlayMaker
2016/1Copyright(C) 2016 . All Rights Reserved 16
} Install PlayMaker 1.7.8.4
2016/1Copyright(C) 2016 . All Rights Reserved 17
} I Made a Backup. Go Ahead!
2016/1Copyright(C) 2016 . All Rights Reserved 18
} Import
2016/1Copyright(C) 2016 . All Rights Reserved 19
} OK
2016/1Copyright(C) 2016 . All Rights Reserved 20
} Show At Startup
2016/1Copyright(C) 2016 . All Rights Reserved 21
} PlayMaker Project
View
2016/1Copyright(C) 2016 . All Rights Reserved 22
2016/1Copyright(C) 2016 . All Rights Reserved 23
}
( )
2016/1Copyright(C) 2016 . All Rights Reserved 24
} [PlayMaker]-[PlayMaker Editor]
} [Preferences]
2016/1Copyright(C) 2016 . All Rights Reserved 25
} Language(bate) [English]
[Japanese]
2016/1Copyright(C) 2016 . All Rights Reserved 26
} PlayMaker Editor /
(
)
} F1 (F1)
}
2016/1Copyright(C) 2016 . All Rights Reserved 27
}
2016/1Copyright(C) 2016 . All Rights Reserved 28
} PlayMaker GameObject
◦ (3D )
◦ Cube
◦ Position (0, 0, 0)
◦ Cube
◦ PlayMaker Editor [
]
2016/1Copyright(C) 2016 . All Rights Reserved 29
}
2016/1Copyright(C) 2016 . All Rights Reserved 30
}
2016/1Copyright(C) 2016 . All Rights Reserved 31
} State 1
State 1 On ENTER
(RETURN )
2016/1Copyright(C) 2016 . All Rights Reserved 32
} PlayMaker Editor
}
Off
2016/1Copyright(C) 2016 . All Rights Reserved 33
}
} On
◦
◦ [ ]
2016/1Copyright(C) 2016 . All Rights Reserved 34
} Activate
Game Object Activate Game
Object
[ ]
2016/1Copyright(C) 2016 . All Rights Reserved 35
}
2016/1Copyright(C) 2016 . All Rights Reserved 36
} Activate Game Object
Game Object Use Owner
GameObject) Specify Game Object(Game
Object )
2016/1Copyright(C) 2016 . All Rights Reserved 37
} None (GameObject)
Hierarchy View Directional Light D&D
2016/1Copyright(C) 2016 . All Rights Reserved 38
}
◦ Cube PlayMaker Editor
PlayMaker
◦ (On Off)
◦ On Activate game Object
Activate game Object
GameObject GameObject (
)
}
2016/1Copyright(C) 2016 . All Rights Reserved 39
} Cube PlayMaker Editor
2016/1Copyright(C) 2016 . All Rights Reserved 40
}
Directional Light Active On/Off
}
}
} PlayMaker Editor On
}
Turn Off ENTER (RETURN )
2016/1Copyright(C) 2016 . All Rights Reserved 41
}
2016/1Copyright(C) 2016 . All Rights Reserved 42
} On
[ ]-[Turn Off]
2016/1Copyright(C) 2016 . All Rights Reserved 43
} On Turn Off
} !
Turn Off
Off D&D
2016/1Copyright(C) 2016 . All Rights Reserved 44
} PlayMaker Editor On
} [ ]
( xxx
yyy )
}
X
}
} Input
} Get Button Down [
]
2016/1Copyright(C) 2016 . All Rights Reserved 45
} Get Button Down
} Get Button Down Send Event
Turn Off
2016/1Copyright(C) 2016 . All Rights Reserved 46
} Scene View
On Off
2016/1Copyright(C) 2016 . All Rights Reserved 47
} 1
◦ Off
On
}
2016/1Copyright(C) 2016 . All Rights Reserved 48
} 2
◦ On/Off
Directional Light Activate( )/Deactivate(
)
}
2016/1Copyright(C) 2016 . All Rights Reserved 49
} Input
Get Mouse Button Down
Play Maker
2016/1Copyright(C) 2016 . All Rights Reserved 50
}
◦ PlayMaker Animation
◦ PlayMaker Unity4.0
Mecanim(Animator )
◦ Add-on
– https://hutonggames.fogbugz.com/default.asp?W1031
◦
2016/1Copyright(C) 2016 . All Rights Reserved 51
} Cube 3
} Door Material
Door
2016/1Copyright(C) 2016 . All Rights Reserved 52
Position Scale
Door (0, 1.5, 0) (3, 3, 0.1)
Wall (3, 1.5, -0.1) (3, 3, 0.1)
Wall (-3, 1.5, -0.1) (3, 3, 0.1)
} Door [Window]-[Animation]
} Animation View [Create]
2016/1Copyright(C) 2016 . All Rights Reserved 53
}
Open
} Animation View [Add Property]
[Transform]-[Positon] [+]
2016/1Copyright(C) 2016 . All Rights Reserved 54
} Open Positon.x
} Animation View
2016/1Copyright(C) 2016 . All Rights Reserved 55
Positon.x
0 0
60 -2.9
} Close
} Animation View Open
[Create New Clip...]
2016/1Copyright(C) 2016 . All Rights Reserved 56
Animation
Clip
}
Close
} Animation View [Add Property]
[Transform]-[Positon] [+]
2016/1Copyright(C) 2016 . All Rights Reserved 57
} Close Positon.x
} Animation View
2016/1Copyright(C) 2016 . All Rights Reserved 58
Positon.x
0 -2.9
60 0
} Animation View
Project View
2016/1Copyright(C) 2016 . All Rights Reserved 59
} Open Close
Loop Loop
Loop
} Open Inspector
View Loop Time Close
2016/1Copyright(C) 2016 . All Rights Reserved 60
} Animator Controller Door
Animator Controller
2016/1Copyright(C) 2016 . All Rights Reserved 61
}
2016/1Copyright(C) 2016 . All Rights Reserved 62
} Entry Init (Init
[Set as Layer Default State]
)
2016/1Copyright(C) 2016 . All Rights Reserved 63
} Animator Controller
Next
} Parametes
Trigger New Trigger
Next
2016/1Copyright(C) 2016 . All Rights Reserved 64
} Init=>Open Open=>Close Close=>Open
Transition
[Make Transiton]
)
2016/1Copyright(C) 2016 . All Rights Reserved 65
} Transition Inspector View
Conditions +
Parameter Next
2016/1Copyright(C) 2016 . All Rights Reserved 66
} Door PlayMaker
Editor
}
◦ Close
◦ Close to Open
◦ Open
◦ Open to Close
} 2
◦ Open door
◦ Close door
2016/1Copyright(C) 2016 . All Rights Reserved 67
}
2016/1Copyright(C) 2016 . All Rights Reserved 68
}
◦ Close
– Open door
◦ Close to Open
– FINISHED
◦ Open
– Close door
◦ Open to Close
– FINISHED
} Close=>Close to Open=>Open=>Open to
Close=>Close
2016/1Copyright(C) 2016 . All Rights Reserved 69
} ( )
} [File]-[Save Scene] [Ctrl + S]
} PlayMaker Animator Controller
◦ https://hutonggames.fogbugz.com/default.asp?W1031
} AnimatorProxy.unitypackage
} Animator
2016/1Copyright(C) 2016 . All Rights Reserved 70
} Close Close to Open
◦ Get Button Down
◦ Send Event Close door
} Close to Open Open
◦ [Animator]-[Set Animator Trigger]
◦ Trigger Next
2016/1Copyright(C) 2016 . All Rights Reserved 71
} Open Open to Close
◦ Get Button Down
◦ Send Event Open door
} Open to Close Close
◦ [Animator]-[Set Animator Trigger]
◦ Trigger Next
}
2016/1Copyright(C) 2016 . All Rights Reserved 72
} PlayMaker
} PlayMaker
} GameObject Material Mecanim
Unity
2016/1Copyright(C) 2016 . All Rights Reserved 73
2016/1Copyright(C) 2016 . All Rights Reserved 74
2016/1Copyright(C) 2016 . All Rights Reserved 75
}
2016/1Copyright(C) 2016 . All Rights Reserved 76
}
PlayMaker
◦ https://hutonggames.fogbugz.com/default.asp?W1182
} Game Design with Playmaker and Unity
Assets.unitypackage
2016/1Copyright(C) 2016 . All Rights Reserved 77
} I Made a Backup. Go Ahead!
No Thanks [Asstes]-
[Run API Updater]
2016/1Copyright(C) 2016 . All Rights Reserved 78
} Plane Position ( 0, 0, 0 )
} [Assets]-[Import Assets]-[Characters]
} [Standard Assets]-[Characters]-
[ThirdPersonCharacter]-[Prefabs]
ThirdPersonController Hierarchy
D&D
} Position ( 0, 0, -3 )
2016/1Copyright(C) 2016 . All Rights Reserved 79
} Close Open Get Button Down
2016/1Copyright(C) 2016 . All Rights Reserved 80
} Close Open Physics - Trigger
Event
} Close
◦ Trigger: On Trigger Enter
◦ Send Event: Open door
} Open
◦ Trigger: On Trigger Exit
◦ Send Event: Close door
2016/1Copyright(C) 2016 . All Rights Reserved 81
} Door Box Collider
} Box Collider Is Trigger
} Box Collider Size (1, 1, 30)
2016/1Copyright(C) 2016 . All Rights Reserved 82
} Door
Collider
2016/1Copyright(C) 2016 . All Rights Reserved 83
} GameObject
} DoorTrigger
} DoorTrigger Position( 0, 1.5, 0 ), Scale( 3, 3,
0.1 )
} DoorTrigger Box Collider
} DoorTrigger Box Collider IsTrigger
} Door Box Collider
Box Collider
2016/1Copyright(C) 2016 . All Rights Reserved 84
} GameObject
} DoorGroup
} Positon ( 0, 0, 0 )
} Door DoorTrigger
2016/1Copyright(C) 2016 . All Rights Reserved 85
} Door PlayMaker Editor
}
}
DoorTemplate
2016/1Copyright(C) 2016 . All Rights Reserved 86
} Door PlayMaker Editor
}
2016/1Copyright(C) 2016 . All Rights Reserved 87
} DoorTrigger PlayMaker Editor
} [
]-[ ]-[DoorTemplate]
FMS
2016/1Copyright(C) 2016 . All Rights Reserved 88
} Close to Open Open to Close
Set Animation Trigger
GameObject Use Owner
} Specify Game Object None
(GameObject) Door D&D
2016/1Copyright(C) 2016 . All Rights Reserved 89
}
2016/1Copyright(C) 2016 . All Rights Reserved 90
} Close to Open Play Sound
} Audio Clip [Playmaker Tutorials]-[Audio]-
[Bell_High]
} Open to Close Play Sound
} Audio Clip [Playmaker Tutorials]-[Audio]-
[Bell_Low]
2016/1Copyright(C) 2016 . All Rights Reserved 91
}
2016/1Copyright(C) 2016 . All Rights Reserved 92
} [Playmaker Tutorials]-[Scenes]-[03 - Trigger]
2016/1Copyright(C) 2016 . All Rights Reserved 93
} Unity Collider
Trigger
} Trigger
}
} Unity5 Mecanim
Animator Controller
}
2016/1Copyright(C) 2016 . All Rights Reserved 94
2016/1Copyright(C) 2016 . All Rights Reserved 95
} Vector3
/
}
}
} PlayMaker PlayMaker Editor
} FSM ( )
2016/1Copyright(C) 2016 . All Rights Reserved 96
}
2016/1Copyright(C) 2016 . All Rights Reserved 97
}
◦ Float( )
◦ Int( )
◦ Bool( )
◦ GameObject
◦ String( )
◦ Vector2( )
◦ Vector3( )
◦ Color( )
◦ Rect( GUI )
◦ Material
◦ Texture
◦ Quaternion( )
◦ Object
2016/1Copyright(C) 2016 . All Rights Reserved 98
2016/1Copyright(C) 2016 . All Rights Reserved 99
} ( )
(
)
2016/1Copyright(C) 2016 . All Rights Reserved 100
} [Ctrl + N](Cmd + N)
} [Ctrl + S] (Cmd + S) (
Example/Chapter05/Scene05 )
} ThridPersonController Position( 0, 0, -3)
} Plane Position( 0 , 0, 0 )
2016/1Copyright(C) 2016 . All Rights Reserved 101
} Project View [Playmaker Tutorials]-[Objects]-
[Vase] Hierarchy D&D Position ( 0, 0, 0 )
} Vase Vase [Playmaker Tutorials]-
[Materials]-[Color_Sheet] D&D
} Project View [Playmaker Tutorials]-[Objects]-
[Vase_Broken] Hierarchy D&D Position ( 0, 0,
0 )
} Vase_Broke Vase_Broken [Playmaker
Tutorials]-[Materials]-[Color_Sheet] D&D
2016/1Copyright(C) 2016 . All Rights Reserved 102
} GameObject TriggerVase
} TriggerVase Box Collider
} Box Collider IsTrigger
} TriggerVase Position(0 , 0.5, 0) Scale ( 1, 1, 1 )
2016/1Copyright(C) 2016 . All Rights Reserved 103
} TriggerVase PlayMaker Editor
}
◦ Unbroken(Start )
◦ Exploding
◦ Broken
2016/1Copyright(C) 2016 . All Rights Reserved 104
} break
} Unbroken [
]-[break]
} Exploding [
]-[FINISHED
} Broken
} Unbroken(break)=>Exploding(FINISHED)=>Broken
} Unbroken Trigger Event Send Event
break
2016/1Copyright(C) 2016 . All Rights Reserved 105
}
2016/1Copyright(C) 2016 . All Rights Reserved 106
} FSM
Unbroken (break) => Exploding
(FINISHED) => Broken
2016/1Copyright(C) 2016 . All Rights Reserved 107
}
2016/1Copyright(C) 2016 . All Rights Reserved 108
FINISHED break
Unbroken Exploding
FINISHED
Broken
} /
◦ Set Visibility(Mesh Renderer / )
◦ Activate Game Object(GameObject / )
◦ Destory Component( )
◦ Destroy Object( GameObject )
◦ Destroy Self( GamObject )
} Set Visibility
} Setup( )
◦ Visible :
◦ Visible :
} Explosding
◦ Visible :
◦ Visible :
2016/1Copyright(C) 2016 . All Rights Reserved 109
} TriggerVase PlayMaker Editor
} Setup
} Setup
} Setup [ ]-
[FINISHED]
} Setup FINISHED Unbroken
}
2016/1Copyright(C) 2016 . All Rights Reserved 110
}
2016/1Copyright(C) 2016 . All Rights Reserved 111
} Setup Set Visibility
} (Vase Vase) Visible
} (Vase_Broken
Vase_Broken) Visible
} Set Visibility
Reset On Exit
2016/1Copyright(C) 2016 . All Rights Reserved 112
}
◦
◦
}
◦
◦ Setup
2016/1Copyright(C) 2016 . All Rights Reserved 113
}
}
◦ [Playmaker Tutorials]-[Prefabs]-[breakPuff]
}
(breakPuff
} GameObject Create Object
} Exploding Create Object
2016/1Copyright(C) 2016 . All Rights Reserved 114
} Game Object Project View [Playmaker
Tutorials]-[Prefabs]-[breakPuff] D&D
} (SpawnPoint Position)
SpawnPoint
GameObject
}
OK
2016/1Copyright(C) 2016 . All Rights Reserved 115
}
GameObject
} GameObject VasePrefab
} VasePrefab Vase Vase_Broken TriggerVase
2016/1Copyright(C) 2016 . All Rights Reserved 116
} VasePrefab Project View Example/Chapter05
D&D
}
} VasePrefab
} Hierarchy View
VasePrefab
} Project View !!!
2016/1Copyright(C) 2016 . All Rights Reserved 117
} Project View [Playmaker Tutorials]-
[Objects]-[Coin] Hierarchy D&D
} Position (0, 0, 0) ( )
} Coin Coin [Playmaker Tutorials]-
[Materials]-[Color_Sheet] D&D
2016/1Copyright(C) 2016 . All Rights Reserved 118
} Coin Coin PlayMaker Editor
} Rotate
} Rotate Rotate
}
2016/1Copyright(C) 2016 . All Rights Reserved 119
} GameObject TriggerCoin
} Position (0, 0.75, 0) Scale (0.5, 0.5, 0.5)
} TriggerCoin Box Collider
} Box Collider Is Trigger
2016/1Copyright(C) 2016 . All Rights Reserved 120
} TriggerCoin Coin
} TriggerCoin PlayMaker Editor
◦ Uncollected( )
◦ Collected
} Picked Up Uncollected
Picked Up Collected
2016/1Copyright(C) 2016 . All Rights Reserved 121
} Uncollected Trigger Event
Send Event Picked Up
} Collected Destroy Self
} TriggerCoin
}
2016/1Copyright(C) 2016 . All Rights Reserved 122
} Get Parent
GameObject
} parent
GameObject
} Collected Get Parent
Store Result parent
}
2016/1Copyright(C) 2016 . All Rights Reserved 123
} Collected
2016/1Copyright(C) 2016 . All Rights Reserved 124
1
2
} PlayMaker
} Destroy Self
(
)
} D&D (
)
2016/1Copyright(C) 2016 . All Rights Reserved 125
}
1.
2. ( )
} Get Parent
Destroy Self Destroy
GameObject
2016/1Copyright(C) 2016 . All Rights Reserved 126
}
2016/1Copyright(C) 2016 . All Rights Reserved 127
} PlayMaker
2016/1Copyright(C) 2016 . All Rights Reserved 128
} Get Parent
parent
2016/1Copyright(C) 2016 . All Rights Reserved 129
} Coin
} Hierarchy Coin
} Project View
!!!
2016/1Copyright(C) 2016 . All Rights Reserved 130
}
} Scene View Hierarchy View
} PlayMaker GameObject (
) Scene View Hierarchy View
Project View
2016/1Copyright(C) 2016 . All Rights Reserved 131
} PlayMaker Editor
2016/1Copyright(C) 2016 . All Rights Reserved 132
} Project View VasePrefab
TriggerVase PlayMaker Editor
} Exploding Create Object
} Game Object Project View Coin
D&D
} Spawn Point
Setup
2016/1Copyright(C) 2016 . All Rights Reserved 133
} GameObject CoinSpawnPoint
} Setup Get Parent
} Store Result CoinSpawnPoint
} Exploding Create Object
Spawn Point CoinSpawnPoint
} VasePrefab Hierarchy View D&D
2016/1Copyright(C) 2016 . All Rights Reserved 134
}
◦ Create Object
}
◦ Destroy Object
◦ Destroy Self
◦
}
2016/1Copyright(C) 2016 . All Rights Reserved 135
2016/1Copyright(C) 2016 . All Rights Reserved 136
2016/1Copyright(C) 2016 . All Rights Reserved 137
} => => ...
2016/1Copyright(C) 2016 . All Rights Reserved 138
} [Ctrl + N](Cmd + N)
} [Ctrl + S] (Cmd + S) (
Example/Chapter06/Scene06 )
} ThridPersonController Position( 0, 0, -3)
} Plane Position( 0 , 0, 0 )
2016/1Copyright(C) 2016 . All Rights Reserved 139
} Cube Position(0, 0.5, 0)
} Project View Material CubeMat
Albedo
} GameObject Trigger
Color Position(0, 1,5, 0) Scale(3,3,3)
} Trigger Color Box Collider
IsTrigger
2016/1Copyright(C) 2016 . All Rights Reserved 140
} Trigger Color PlayMaker Editor
◦ Setup( )
◦ Listener
◦ Change Color
◦ Blue
◦ Red
}
◦ change color
◦ color blue
◦ color red
2016/1Copyright(C) 2016 . All Rights Reserved 141
}
◦ color index
◦ int
}
2016/1Copyright(C) 2016 . All Rights Reserved 142
} Listener
◦ Trigger Event
◦ Send Event: change color
} Change Color
◦ Int Switch
– Int Variable: color index
– Int Switches 2 ( )
– 1
– Compare Int: 0
– Send Event: color blue
– 2
– Compare Int: 1
– Send Event: color red
2016/1Copyright(C) 2016 . All Rights Reserved 143
} Blue
◦ Set Material Color
– Game Object: Specify game Object Cube
– Material: CubeMat ( Cube
)
– Color:
◦ Set Int Value
– Int Variable: color index
– Int Value: 1
2016/1Copyright(C) 2016 . All Rights Reserved 144
} Red
◦ Set Material Color
– Game Object: Specify game Object Cube
– Material: CubeMat ( Cube
)
– Color:
◦ Set Int Value
– Int Variable: color index
– Int Value: 0
2016/1Copyright(C) 2016 . All Rights Reserved 145
} Play Cube
}
}
2016/1Copyright(C) 2016 . All Rights Reserved 146
} Int Switch Int ( )
2016/1Copyright(C) 2016 . All Rights Reserved 147
color int
?
Cube
color int 1
Cube
color int 0
0 1
} Logic
Int Switch
}
}
} Logic URL
◦ https://hutonggames.fogbugz.com/default.asp?W456
2016/1Copyright(C) 2016 . All Rights Reserved 148
}
} Albedo
2016/1Copyright(C) 2016 . All Rights Reserved 149
} Int ( )
} color index 0 1
} Math Math
In ( ) float ( ) bool
( )
}
}
2016/1Copyright(C) 2016 . All Rights Reserved 150
} Material
} Int Switch
Logic
} Int ( ) float ( ) Bool ( )
Math
2016/1Copyright(C) 2016 . All Rights Reserved 151
2016/1Copyright(C) 2016 . All Rights Reserved 152
Logic
2016/1Copyright(C) 2016 . All Rights Reserved 153
}
0 Game
Over
2016/1Copyright(C) 2016 . All Rights Reserved 154
} [Ctrl + N](Cmd + N)
} [Ctrl + S] (Cmd + S) (
Example/Chapter05/Scene05 )
} ThridPersonController Position( 0, 0, -3)
} Plane Position( 0 , 0, 0 )
2016/1Copyright(C) 2016 . All Rights Reserved 155
} [Playmaker Tutorials]-[Objects]-[Health_Cross]
Hierarchy D&D Position(0,0,0)
} Health_Cross Health_Cross
PlayMaker Editor
Rotate
} Rotate Rotate Y 360 /
2016/1Copyright(C) 2016 . All Rights Reserved 156
} GameObject TriggerHealth
Position(0, 0, 0) Scale( 0.75, 0.75, 0.75)
} TriggerHealth Box Collider Is
Trigger
} TriggerHealth Health_Cross
} Health_Cross Position
(0, 1, 0) Hierarchy
Health_CrossPrefab
2016/1Copyright(C) 2016 . All Rights Reserved 157
} Cube
} Cube Damage Position(0, 0, 0) Scale( 1,
0.1, 1 )
} Material DamageMat
} GameObject TriggerDamage
Position(0, 0, 0) Scale(1, 3, 1)
} Box Collider IsTrigger
} GameObject DamageBox
Position(0,0,0) Damage TriggerDamage
2016/1Copyright(C) 2016 . All Rights Reserved 158
} uGUI
} uGUI Unity UI Unity4.6
} OnGUI UI
2D 3D
UI
} PlayMaker uGUI
Add-On
◦ https://hutonggames.fogbugz.com/default.asp?W1192
} uGuiProxy.unitypackage
2016/1Copyright(C) 2016 . All Rights Reserved 159
} uGUI PlayMaker [PlayMaker uGui]
-[Prefabs]-[Playmaker UGui]
} Text Hierarchy View [Create]-
[UI]-[Text]
} Canvas EventSystem
2016/1Copyright(C) 2016 . All Rights Reserved 160
} Canvas Canvas Scale
UI
2016/1Copyright(C) 2016 . All Rights Reserved 161
} Game View Free Aspect 16:9
2016/1Copyright(C) 2016 . All Rights Reserved 162
} Canvas/Text
UI
Game View
2016/1Copyright(C) 2016 . All Rights Reserved 163
} Text )
2016/1Copyright(C) 2016 . All Rights Reserved 164
} Text
2016/1Copyright(C) 2016 . All Rights Reserved 165
} Game Object
} GameObject HealthManager
Position
} HealthManager PlayMaker Editor
Setup
} (int )
◦ Player_health
◦ : int
} Text UpdateHUD
2016/1Copyright(C) 2016 . All Rights Reserved 166
} Setup
◦ Set Int Value
– Int Variable: Player_health
– Int Value: 100
◦ FINISHED UpdateHUD
2016/1Copyright(C) 2016 . All Rights Reserved 167
} UpdateHUD
◦ uGUITextSetText.unitypackage
uGUI Text
◦ Text ( )
Convert
Int To Stirng
( player_health_string )
◦
2016/1Copyright(C) 2016 . All Rights Reserved 168
}
2016/1Copyright(C) 2016 . All Rights Reserved 169
} 100
2016/1Copyright(C) 2016 . All Rights Reserved 170
} ( ) (Damage)
(HealthManager
player_health)
}
}
2016/1Copyright(C) 2016 . All Rights Reserved 171
} [
]
2016/1Copyright(C) 2016 . All Rights Reserved 172
}
} CurrentPlayerHealth(Int
HealthManager(GameObject )
}
2016/1Copyright(C) 2016 . All Rights Reserved 173
} Setup
◦ Get Owner
– Store Game Object Globals/HealthManager
◦ Set Int Value
– player_health Globals/CurrentPlayerHealth
–
2016/1Copyright(C) 2016 . All Rights Reserved 174
} UpdateHUD
◦ Convert Int To String
– Int Variable player_health Globals/CurrentPlayerHealth
– String Valiable: (
)
◦ U Gui Text Set Text
–
}
2016/1Copyright(C) 2016 . All Rights Reserved 175
} HealthManager
◦ Listener ( )
◦ Add Health
◦ Remove Health
}
◦ add_health
◦ remove_health
◦
( )
2016/1Copyright(C) 2016 . All Rights Reserved 176
}
2016/1Copyright(C) 2016 . All Rights Reserved 177
}
2016/1Copyright(C) 2016 . All Rights Reserved 178
} Add Health
◦ Int Add
– Int Variable: Globals/CurrentPlayerHealth
– Add: 25
} Remove Health
◦ Int Operator (Int Add )
◦ Integer 1: Globals/CurrentPlayerHealth
◦ Integer 2: 10
◦ Operation: Subtract
◦ Store Result: Globals/CurrentPlayerHealth
2016/1Copyright(C) 2016 . All Rights Reserved 179
} Project View Health_CrossPrefab TriggerHealth
PlayMaker Editor
2016/1Copyright(C) 2016 . All Rights Reserved 180
}
◦ Listener( )
◦ Update Health
}
◦ update_health
}
2016/1Copyright(C) 2016 . All Rights Reserved 181
}
◦ parent GameObject
} Listener
◦ Trigger Event
– Send Event : update_health
2016/1Copyright(C) 2016 . All Rights Reserved 182
} Update Health
◦ Send Event
–
◦ Get Parent
– Store Result: parent
◦ Destroy Object
– Game Object : parent
2016/1Copyright(C) 2016 . All Rights Reserved 183
} Send Event
2016/1Copyright(C) 2016 . All Rights Reserved 184
}
/
2016/1Copyright(C) 2016 . All Rights Reserved 185
} Health_CrossPrefab
}
25
}
◦ DamageBox
DamageBox
2016/1Copyright(C) 2016 . All Rights Reserved 186
} 100
} 150
} 0 (0 )
GAME OVER
2016/1Copyright(C) 2016 . All Rights Reserved 187
} Listener add_health
Add Health
} Listener
2016/1Copyright(C) 2016 . All Rights Reserved 188
} HealthManager PlayMaker Editor
}
◦ Check Health
} Check Health
◦ int Compare
}
◦ add_health
◦ FINISHED
}
2016/1Copyright(C) 2016 . All Rights Reserved 189
Check Health
} Check Health
2016/1Copyright(C) 2016 . All Rights Reserved 190
} Int Compare
2016/1Copyright(C) 2016 . All Rights Reserved 191
}
◦ Equal:
◦ Less Than: Integer 1 < Integer 2
◦ Grater Than: Integer 1 > Integer 2
}
CurrentPlayerHealth 150
add_heath
FINISHED
2016/1Copyright(C) 2016 . All Rights Reserved 192
} Health_CrossPrefab
} 25 150
2016/1Copyright(C) 2016 . All Rights Reserved 193
} DamageBox
150
150
}
2016/1Copyright(C) 2016 . All Rights Reserved 194
}
◦ Add Health
– Int Compare
◦ Round Health
– Set Int Value
150
◦ round_health
2016/1Copyright(C) 2016 . All Rights Reserved 195
} 0 GAME
OVER
}
2016/1Copyright(C) 2016 . All Rights Reserved 196
}
◦ Is Dead ?
– Int Compare
◦ Game Over
◦ U Gui Text Set Text uGUI
Text GAME OVER
◦ game_over
2016/1Copyright(C) 2016 . All Rights Reserved 197
2016/1Copyright(C) 2016 . All Rights Reserved 198
2016/1Copyright(C) 2016 . All Rights Reserved 199
} 2010
– https://www.assetstore.unity3d.com/jp/#!/content/84
2016/1Copyright(C) 2016 . All Rights Reserved 200
} iTween
– http://itween.pixelplacement.com/examples.php
2016/1Copyright(C) 2016 . All Rights Reserved 201
} PlayMaker
iTween
}
} iTween Easy(
)
2016/1Copyright(C) 2016 . All Rights Reserved 202
}
2016/1Copyright(C) 2016 . All Rights Reserved 203
I Tween Look From
Look
Move
Punch ( )
Rotate
Scale
Shake ( )
2016/1Copyright(C) 2016 . All Rights Reserved 204
Pause
Resume
Stop ( )
From ( )
To ( )
By ( )
Add By
Update (EasType To )
2016/1Copyright(C) 2016 . All Rights Reserved 205
2016/1Copyright(C) 2016 . All Rights Reserved 206
} iTween
} EasyType
2016/1Copyright(C) 2016 . All Rights Reserved 207
2016/1Copyright(C) 2016 . All Rights Reserved 208
Tag
2016/1Copyright(C) 2016 . All Rights Reserved 209
} Cube
} Cube iTween
2016/1Copyright(C) 2016 . All Rights Reserved 210
}
} Plane Position(0, 0, 0)
} Cube PopCube
Position(0, 0.5. 0)
} PopCube [Playmaker
Tutorials]-[Materials]-
[Cube_Blue]
2016/1Copyright(C) 2016 . All Rights Reserved 211
} PopCube PlayMaker Editor
}
◦ Listener
◦ Pop Up
}
◦ pop_up ( )
}
◦ wait_time (float )
2016/1Copyright(C) 2016 . All Rights Reserved 212
}
} pop_up
Pop Up
2016/1Copyright(C) 2016 . All Rights Reserved 213
} PopCube
RigidBody
} PopCube RigidBody
} Physic Material Bouncy
Bouncy Bounciness 1 PopCube
Box Collider Material
2016/1Copyright(C) 2016 . All Rights Reserved 214
}
2016/1Copyright(C) 2016 . All Rights Reserved 215
} Add Force
}
2016/1Copyright(C) 2016 . All Rights Reserved 216
Game Object Game Object
At Position
Vector
X, Y, Z
Space (World) (Self)
Force Mode ( )
Every Frame ?
2016/1Copyright(C) 2016 . All Rights Reserved 217
FoceMode
Force
Impulse
VelocityChange
Acceleration
} Listener
Pop Up
(PopCube
)
} Listener
2016/1Copyright(C) 2016 . All Rights Reserved 218
}
} Add
Torque
iTweenRotateAdd
}
2016/1Copyright(C) 2016 . All Rights Reserved 219
} PopCube
} Inspector View
} Add Tag...
2016/1Copyright(C) 2016 . All Rights Reserved 220
} Tags
} Tag 0 PopCube
2016/1Copyright(C) 2016 . All Rights Reserved 221
} PopCube Tag
(PopCube)
2016/1Copyright(C) 2016 . All Rights Reserved 222
} PopCube
(3x3=9 )
} PopCube
pop_up
PopCube
2016/1Copyright(C) 2016 . All Rights Reserved 223
} PopCube
PopManager
} PopManager
} PopManager PlayMaker Editor
}
◦ Setup
◦ Send Pop Up
2016/1Copyright(C) 2016 . All Rights Reserved 224
}
◦ time_to_wait (float )
◦ target_object (GameObject )
}
2016/1Copyright(C) 2016 . All Rights Reserved 225
} Setup
◦ Random Float
– Min: 0.5
– Max: 2.0
– Store Result: time_to_wait
◦ Wait
– Time: time_to_wait
– Finish Event: FINISHED
2016/1Copyright(C) 2016 . All Rights Reserved 226
} Send Pop Up
◦ Get Random Object
– With Tag: PopCube
– Store Result: target_object
◦ Send Event
– Game Object
– GameObject Specify Game Objet: terget_object
– Send Event: pop_up
2016/1Copyright(C) 2016 . All Rights Reserved 227
} Rigidbody
} Tag
◦ Get Random Object(
)
◦ Find Game Object(1 )
} Tag
◦ Get Tag
◦ Game Object Tag Switch
2016/1Copyright(C) 2016 . All Rights Reserved 228
2016/1Copyright(C) 2016 . All Rights Reserved 229
} Scene10
} (
)
} [Playmaker Tutorials]-[Scenes]-[10 - Platform
Puzzle Chest Opening Game]
2016/1Copyright(C) 2016 . All Rights Reserved 230
2016/1Copyright(C) 2016 . All Rights Reserved 231
} M2H C# Game Examples
◦ https://www.assetstore.unity3d.com/jp/#!/content/116
} PlayMaker
◦ https://hutonggames.fogbugz.com/default.asp?W880
}
}
2016/1Copyright(C) 2016 . All Rights Reserved 232
1. PlayMaker
2. M2H C# Game Examples
3. MeshCombineUtility.cs
l combine.mesh.GetTriangleStrip
combine.mesh.GetTriangles
l combine.mesh.SetTriangleStrip
combine.mesh.SetTriangles
2016/1Copyright(C) 2016 . All Rights Reserved 233
} M2HGamesPlayMaker.unitypackage
}
}
} PlayMakerM2H.zip
2016/1Copyright(C) 2016 . All Rights Reserved 234
2016/1Copyright(C) 2016 . All Rights Reserved 235
}
} PlayMaker C#
◦ C#
– ( : void)
– 0 1
◦ PlayMaker
– Send Message
2016/1Copyright(C) 2016 . All Rights Reserved 236
} C# PlayMaker
◦ PlayMaker
–
◦ C#
– ( )
2016/1Copyright(C) 2016 . All Rights Reserved 237
; .; ; ;
; :" ;
C B ) ; B E
) ( ) ( )
B ;
E
( )"( :" B ;
F
F
2016/1Copyright(C) 2016 . All Rights Reserved 238
2016/1Copyright(C) 2016 . All Rights Reserved 239
} PlayMaker
Unity
}
}
2016/1Copyright(C) 2016 . All Rights Reserved 240
} Add-On
◦ https://hutonggames.fogbugz.com/default.asp?W714
}
Ecosystem Browser
Unity Editor
◦ https://hutonggames.fogbugz.com/default.asp?W1181
} Ecosystem.unitypackage
2016/1Copyright(C) 2016 . All Rights Reserved 241
} PlayMaker &
} Ecosystem
} Unity [PlayMaker]-[Addons]-[Ecosystem]-
[Ecosystem Browser] (ALT+E
)
} ugui mecanim
github
} Get
2016/1Copyright(C) 2016 . All Rights Reserved 242

PlayMaker入門 (Version 1.7.8)