From the course: Revit to Unity for Architecture, Visualization, and VR

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

IFC to Unity via Tridify

IFC to Unity via Tridify

From the course: Revit to Unity for Architecture, Visualization, and VR

Start my 1-month free trial

IFC to Unity via Tridify

- [Instructor] All right, now that we have our Ifc file imported into Unity and loaded into our scene, let's take a quick look at some of the interactivity we can bring in with the BIM data. Let's create a new script and we'll call it DoorHide. Open up it in Visual Studio or some other script editor. Now, let's give it an array. We'll make it public so that we can see it in the inspector. And it's going to be an array of IfcDoor. You can see that there it's brought in through Tredifying. And we'll call that doors. Now, down in the Start function, we need to populate that doors array so we're going to say doors equals FindObjectsOfTypeIfcDoor. Now, this will go through and find every one of those object that Tredify brought in that has the IfcDoor component on it and it'll add that component to the array. Now, if we go down to Update, we can add some functionality to interact with this array. We're going to say…

Contents