Search Unity

Enemy Disappears on Game Start

Discussion in 'Navigation' started by Mrkittens90, Jan 25, 2021.

  1. Mrkittens90

    Mrkittens90

    Joined:
    Dec 11, 2020
    Posts:
    3
    Hello! I am very new to unity and working on my first game for a club at my school. It is a 2d platformer. I am working on pathfinding for my enemies. I was using the Brackeys tutorial for this with the A* package. I have been following the tutorial exactly however when I press start to play the game my enemy disappears for no reason. I can see in the inspector that the enemy is still there and is moving however I cant see it. Any help would be appreciated. Thank you in advance!
     
  2. Tanoshimi2000

    Tanoshimi2000

    Joined:
    Feb 10, 2014
    Posts:
    46
    I cannot help with that issue, but I'm suffering a similar issue in 3d. I instantiate a character and position it in Start, and then NavMeshAgent must be moving it, since when I check on it in Update, at frame 1, it's in a completely different spot.

    Mrkittens90: Is yours there, but in a different position? May be the same issue I'm having. Otherwise, check to see if the gameobject (and all components) is enabled?
     
  3. ATAB_MMMM

    ATAB_MMMM

    Joined:
    Jun 17, 2021
    Posts:
    1
    I resetted the transform on the "Enemy" and the graphics and now the eagle is there.