LDraw.org Discussion Forums

Full Version: Import ldr Model into Unity issues.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey LDraw community, 
I am having an issue with importing my .ldr file into Unity. 
I am using the Lego model importer that comes with the Lego Mini Game on the Unity game engine website. 
When I import my model, parts of it are rotated on in the wrong position.

I checked the ldraw xml file and I have the most recent version. 

Does anyone have an idea how to fix this? 

[Image: EqV3t3mXEAEKI_f?format=jpg&name=large]
Hi (and welcome here!)


Quote:I checked the ldraw xml file and I have the most recent version. 
Are you sure? The version that I installed here with Unity is dated 2020-02-02 and doesn't contain mapping for parts 65634, 65635 and 66727. Latest one is stamped 2020-12-23.

Unity LDraw.xml is located in C:\Users\{your user name}\MyFirstGame\Library\PackageCache\[email protected]\Data
Keep a backup the original one if the new one doesn't work (it seems to be fine here)
Thank you for the reply! 

Quote:Are you sure? The version that I installed here with Unity is dated 2020-02-02 and doesn't contain mapping for parts 65634, 65635 and 66727. Latest one is stamped 2020-12-23.

You are correct I hadn't updated the xml file like I thought and now get no import errors.

However, the positioning of parts is still not correct.

Do you know how to fix this?
(2020-12-29, 19:15)ajs Wrote: [ -> ]Do you know how to fix this?

Huh  Can you share your LDraw model?
Sure! 
Here you go.
(2020-12-29, 21:24)ajs Wrote: [ -> ]Sure! 
Here you go.
OK, sorry, I give up with this one: looks like ldraw.xml gets overwritten when Microgame is launched Sad
No worries, thank you so much for having a look for me and helping me out.

I will use other bricks instead.  Smile