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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

The gameObject disapear for the camera when i start but it still on the game.

Discussion in '2D' started by NeoEtIchiro, May 23, 2021.

  1. NeoEtIchiro

    NeoEtIchiro

    Joined:
    Mar 7, 2021
    Posts:
    6
    I make a little game with lava that move at the bottom of the screen.

    But when i click on start the lava disapear.

    But if i go to the editor the lava work parefetly here.

    Please help me I test plenty of thing. And it dont work.

    Thanks.
     

    Attached Files:

  2. NeoEtIchiro

    NeoEtIchiro

    Joined:
    Mar 7, 2021
    Posts:
    6
    I've find the solution it's good
     
  3. SadeqSoli

    SadeqSoli

    Joined:
    Jul 1, 2019
    Posts:
    11
    Hi, @NeoEtIchiro
    Ok, I hope I get your problem correctly,
    If you have some sprite that is shown in the scene window but not at runtime you should consider camera's different properties like (in 2D or Orthographic camera): Orthographic size (Which is 5 by default and rarely happens ) or Z vector of position to be in the range of target sprite or game object. if these weren't the problem you should also check Near and Far property on the camera which seems impossible since is 3 to 1000 by default but you better check every possibility to make sure you don't wasting your time on small bugs.
    BTW if this didn't helped you, let me know and also maybe tell me what other ways have you tried?
    Good luck with your game, way to go.

    *****************************
    checkout the pictures too:

    01.jpg


    02.jpg