From the course: Unity 3D: Lunchtime Lessons
Unlock the full course today
Join today to access over 23,400 courses taught by industry experts.
Scripting interactivity - Unity 3D Tutorial
From the course: Unity 3D: Lunchtime Lessons
Scripting interactivity
- [Instructor] Hi there, this week we're going to do scripting for interactivity. Now I've already set up a scene last week, where we did animation and the animation triggers. So what we have here, is I have this refrigerator. And if I go over to the animator window here and keep my game window open, if I press play, you'll see that each one of these objects here has what's called animation triggers. So for example, if I select the door left and click open, it opens and it closes. And the same goes for all of these different doors. Now the one thing I did with this, is I actually named all of these Open and Close. And that's going to be really important when we do the script because we're going to reference these names. So what I want to do is I want to create a collider for these doors and drawers, and then tie that to the mouse clicking down. So let's go into our scene here. And so the first thing I want to do…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Realistic skies in Unity4m 54s
-
(Locked)
Creating HDRI skyboxes6m 16s
-
(Locked)
Managing exposure in HDRP6m 33s
-
(Locked)
Creating glass materials5m 22s
-
(Locked)
Channel packed textures in HDRP5m 8s
-
(Locked)
Animating for interactivity6m 24s
-
(Locked)
Scripting interactivity6m 37s
-
(Locked)
Fabric material in Shader Graph5m 56s
-
(Locked)
Configurable car paint materials6m 20s
-
(Locked)
Foliage with alpha clipping4m 8s
-
(Locked)
3ds Max to Unity Pipeline8m 4s
-
(Locked)
Maya to Unity Pipeline6m 5s
-
-
-
-
-