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

Making Object Follow Cursor (3D)

Discussion in 'Scripting' started by cate5171, Oct 13, 2020.

  1. cate5171

    cate5171

    Joined:
    Jan 5, 2020
    Posts:
    101
    Hello Everyone!
    I am making a city game about creating a city and keeping it at stable stage. I am currently working on a shop system where you can buy buildings to place but i am having some trouble with the placement system and so i came on here for some help. How can i make a game-object follow my cursor?
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,992
  3. cate5171

    cate5171

    Joined:
    Jan 5, 2020
    Posts:
    101
    I have a problem with it, when there are bigger objects, the object moving with the cursor is off by a lot. Is there any way to fix this?
     
  4. cate5171

    cate5171

    Joined:
    Jan 5, 2020
    Posts:
    101
    Fixed this problem, something with the camera