From the course: Revit to Unreal for Architecture, Visualization, and VR
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Adding basic logic
From the course: Revit to Unreal for Architecture, Visualization, and VR
Adding basic logic
- [Instructor] The Event Graph is where Unreal Blueprints looks for any kind of code that you want running at gameplay. So, essentially, once you click play, the Event Graph begins and the Construction Scripts freeze. What we'll need to do for this is a couple of things. We need to test for collision, so that we know when a person enters our box collider. And then we'll need to add inputs, so that we can enable the input when you're standing inside, and disable it when you leave. We'll go ahead and test for collision first. Right click your box collider component and go down to Add Event. And we'll need to add OnComponentBeginOverlap and EndOverlap. And this will essentially start an execution chain when this event happens. So when you enter the box and when you leave it, it will fire. What we also need to do is set up a variable that essentially just keeps track of if you are in or out of the box. So we'll go ahead and click +Variable here. And we'll name it InBox. It doesn't need to…
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.