Unity Connector (Receiver) - Partial Position Mismatch

Good Day everyone,

rather new speckle user here. Whilst trying to follow the tutorial Interactive Real-Time Experiences with Unity, Revit, Rhino and Speckle, I’ve progressed to a point where the Revit Example Object has successfully been exported and is now available as a Commit within my Main Stream including all Metadata and with all Objects placed in the correct spot, as seen in the screenshot provided below.

However, upon importing the Commit via the Unity Connector, the vast majority of object are placed at (or close to) the origin of the unity scene instead of the correct location as seen in the web viewer.

Whilst investigating this issue i have found that this appears to only affect objects which do not have the family property set directly under “RevitInstance”, but only under the “definition” which itself is part of the “RevitInstance”. Following are one example of each case:
First, a wall which has its “family” property set directly under “RevitInstance” and is correctly placed in unity:

Secondly, a furniture which only has the “family” property set under “definition” and will not be placed correctly in unity:

Besides this rather obvious position mismatch, all other properties are correctly added to the SpeckleProperties Component of each object, including the family property for the wrongly placed ones.

Versions used:
Revit 2021
Unity 2022.3.7f1
Unity Connector 2.14.2 (latest release)
Speckle 2.15.1 (latest release)

I would like to ask whether this an intended behaviour by the Unity-Connector, a known issue, a version conflict or an error on my behalf. Thank you guys in advance,
Polly

Hi, Thanks for the report.

I’ve gone and merged our 2.15 features to the main branch of the unity connector, this should address issues with Revit Instances being misplaced.

Please could you try updating your connector

  • if you’re using the Sandbox project, you’ll need to git fetch + git pull or re-download the repository as you did previously.
  • If you’re using the Unity connector package, you’ll need to update through the Package Manager.

Please let me know how you get on

1 Like

Hi Jedd,

the updated Connector (2.15.1) is now importing the models from Speckle as expected :+1:t2:

Thanks for the quick followup and fix!

2 Likes

One short followup on my part - whilst the position of these objects is now fixed, they do no longer contain any metadata. Guess that’ll be the next issue that will need some looking into… :sweat_smile:

I’ll investigate, thanks!

Yep, good catch,

Simple fix, I just forgot to add the function call to attach properties on RevitInstances.
Should be fixed now with 2.15.2

Thanks for the help!

3 Likes