Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Nominations have been announced for this years Unity Awards. Celebrate the wonderful projects made by your peers this year and get voting! Vote here!
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

2D Object stuck on nothing

Discussion in '2D' started by TheClown456, Dec 6, 2018.

  1. TheClown456

    TheClown456

    Joined:
    Dec 6, 2018
    Posts:
    2
    I'm trying to make some basics mechanics on a endless runner, but for some reason, my objects are getting stuck on nothing.



    (This box is the UI canvas)

    It look like my objects cannot pass the "0" position. Weird. Anyone have any idea on how to fix it?
     
  2. PapzZ

    PapzZ

    Joined:
    Jan 5, 2015
    Posts:
    30
    Your Image in Canvas can't go (i think bcs i m not pro in canvas / ui) out of canvas, if you want a collectable diams système you need to create GameObject like prefabs and instanciate it by script
     
  3. TheClown456

    TheClown456

    Joined:
    Dec 6, 2018
    Posts:
    2
    Already Fixed ^^ Thanks, it was a problem in the code that was moving the diamond. I removed 1 line of code, and worked fine <3
     
    PapzZ likes this.