Hi!
I’ve created a 3D model in SketchUp and now I’m trying to instatiate it in Unity through a C# script.
I’m using this line to do so:
Instantiate(dynamicWall, new Vector3(0, 0, 0), Quaternion.identity);
When I try it in-game, the model is created almost flawlessly. The only porblem is that it’s rotated 90° around the X axis.
At first I thought there’s a problem with the model or the prefab I’m instantiating, but when I drag-and-drop them from the Project panel into the scene, they are rotated just as I would expect them to be. The problem only emerges when I instantiate them dynamically. Why does this happen?