Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Can`t see 3D Buildings

Discussion in 'General Discussion' started by yagmuryildiz99, Aug 16, 2022.

  1. yagmuryildiz99

    yagmuryildiz99

    Joined:
    Aug 16, 2022
    Posts:
    2
    Hi I am pretty new in Unity and I am having some problems to see the buildings that I import in the Unity. When I first import# there was no problem and I zoomed in and zoomed out. After that when I import again, I see the axes but I can`t see the buildings. Can anybody help on this? Thank you.
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,022
    try selecting the model from Hierarchy and press F key (to frame selected)
    could be the model is not at 0,0,0 position, or scale is too small or too big.

    or when you select model in Project window,
    check inspector, there is 3d preview at the bottom, so can check if imported file contains any mesh
    upload_2022-8-16_14-6-20.png
     
    yagmuryildiiiz likes this.
  3. yagmuryildiz99

    yagmuryildiz99

    Joined:
    Aug 16, 2022
    Posts:
    2
    Thank you very much for your reply. I fixed it with your help. I would be so happy if you answer my next question. I want to see inside of the building like in the second pic. But I can only see the building from above (see the pic). I can only move the building or go depper. Can u help me for this ? I appreciate it. Thanks for your time.
     

    Attached Files:

  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,022
    is that from scene view?
    Try to press key "2" to switch between 2D and 3D mode (if it happens to be 2d mode)
     
    yagmuryildiiiz likes this.
  5. yagmuryildiiiz

    yagmuryildiiiz

    Joined:
    Aug 16, 2022
    Posts:
    11
    I can only move the camera in x z and y axes. In the figure, I want to rotate the camera towards to cube. Is it possible to rotate the camera ? Thank you very much.
     

    Attached Files:

  6. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,022
  7. r31o

    r31o

    Joined:
    Jul 29, 2021
    Posts:
    460
    Attach this script to the camera:
    Code (CSharp):
    1. using UnityEngine;
    2.  
    3. [ExecuteInEditMode]
    4. public class LookAt : MonoBehaviour
    5. {
    6.     public Transform target; //The cube
    7.  
    8.     void Update()
    9.     {
    10.         transform.LookAt(target.position);
    11.     }
    12. }
    The camera should look at the cube while in edit mode and in play mode.
     
  8. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,385
    Also, if you hold down the right mouse button you can move the camera with FPS controls (i.e. WASD to move in four directions and you can look freely by moving the mouse.) That makes the scene view very easy and intuitive to navigate.