Forum rules - please read before posting.

Object not affected by camera

Hi,

How would you ensure an object is not affected by the camera? For example, a title for the game stays middle centre whilst other thigns - bg, players, csamera moves?

Comments

  • as long as the gameobject is not a child of the camera, then it should stay put.

    things attaced to the cam will move with it.
  • My objects are not children of the camera? tey are untagged, default layer and just have a transform and aniamtor?
  • edited February 2016
    @klarax is correct - if you want something to move with the camera, you have to parent it.  That's just how Unity works.  Alternatively, you could write a script that positions an object relative to your camera.

    A title or logo, though, would be best placed in a Menu - better yet a Unity UI-linked Menu so that you can animate it more smoothly.


  • Hi, are we just talking adding it as a child? Like this:


    As this doesn't keep the titles rooted to the camera window, and doesn't follow the camera

  • edited March 2016
    Yes that's childing an object.
    If your camera moves and you want smth. to move along with it, child it to your camera.
     Make sure your child it correctly to the exact camera taht moves.

     Also you might be moving your objects with transform, make sure in your actions it is ticked affect children too. But it should move regardeless.
  • Yes thanks! I was being a dingbat and not animating my camera, but instead switching from camera to camera! sorted thanks!
  • edited March 2016
    Haha :) This kind of issues are the most hardest ones :))
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.