Hi Guys, Some people have asked how to get BIM data in your Unity Project. This is how to do it. First export your BIM model as IFC 2x3 and upload it to Tridify Convert (https://www.tridify.com/convert/). After the conversion is ready, download Tridify Tools plugin from Asset Store. With the plugin import your BIM model to Unity scene. I created this simple C# script as an example, how to show BIM data in runtime, just by clicking a gameobject. When clicking an object in the game window, the script will print BIM data to the console. Few things for you TODO. - Add the script to a gameobject Eg. the Main Camera - Link Main Camera gameobject from hierarchy to ShowBimData.cs script RaycastCamera public field in Inspector - Add colliders to all mesh objects as I'm using raycast in the script! Code (CSharp): using UnityEngine; using Tridify; using System; using System.Linq; public class ShowBimData : MonoBehaviour { public Camera raycastCamera; private GameObject _selectedObject; void Update() { if (Input.GetButtonDown("Fire1")) { Ray ray = raycastCamera.ScreenPointToRay(Input.mousePosition); RaycastHit hit; if (Physics.Raycast(ray, out hit, 1000)) { _selectedObject = hit.transform.gameObject; var ifcType = _selectedObject.GetComponent<IfcType>(); if (ifcType != null) { var attributeStrings = ifcType.Attributes .Select(attr => attr.Name + ": " + attr.Value); var attributesString = string.Join(Environment.NewLine, attributeStrings); Debug.Log("Selected: " + ifcType.GetType().Name + Environment.NewLine + attributesString); } else { Debug.Log("No IfcType found on object " + _selectedObject.name); } } else { Debug.Log(""); } } } }
Hi Guys, for some unknown reason Unity has removed our Tridify BIM Tools plugin from Asset Store. But don't worry, You can still download Tridify BIM Tools plugin from here https://www.tridify.com/developers/unity/ Cheers!
Less keen on downloading something if its not allowed on asset store. Did they confirm to you that its a mistake, or is it because it breaks their TOS?
Unity haven't given us any explanation for taking our plugin out of Assets Store, but we're investigating this issue as we speak.
Because our service is an online, cloud-based service, that requires a user to register and sign in, and since our Asset Store Partner Agreement with Unity ended, we are not qualified in Asset Store anymore (Submission Guidelines, section 1.4). We are sorry for any inconvenience. We will continue to develop and support our tools and, like said earlier, You find Tridify BIM Tools for Unity here: https://www.tridify.com/developers/unity/