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. Dismiss Notice

Perspective (?) problem

Discussion in 'Getting Started' started by T4NK32, Dec 13, 2019.

  1. T4NK32

    T4NK32

    Joined:
    Aug 7, 2019
    Posts:
    16
    I have a lot of tiles, on top of which towers are placed.
    When hovering the towers range is shown: A flat cylinder (part of the tile) becomes visible under the tile, just above the floor. However this "feature" can only be seen on the tiles in the middle of the game-window (?!?).

    When moving the floor up/down the "area of visibility" changes - even if the floor (flat cube) is always below.
    (Moving the camera also affects it but not enough...)

    See the difference between Game- and Scene-windows:
    weirdnes.png
    There IS a red cylinder under ALL the tiles
    - What's happening ?!?
     
  2. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Perhaps it is part of your prefab or even debug drawing. Regardless, Unity won't do that unless you somehow, or something you're using causes it.
     
  3. T4NK32

    T4NK32

    Joined:
    Aug 7, 2019
    Posts:
    16
    OK, I found the culprit - The floor material's shader was set to "Sprites/Default".
    Setting it to "Standard" made the problem go away :). So that's .. hmm...
     
    JoeStrout likes this.