Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Can't attach new mouselook

Discussion in 'Unity 5 Pre-order Beta' started by sramsay, Feb 28, 2015.

  1. sramsay

    sramsay

    Joined:
    Dec 25, 2014
    Posts:
    3
    With 4, I had a set up where the first person controller from Standard Assets had two cameras attached to it: one as a main camera, and another (with exactly the same transform) that was exclusively for held objects. This latter camera had its own layer, and it was basically just to make sure that whatever object was held remained in the foreground, so it didn't go through objects or interfere with them. A pretty common trick.

    The problem I'm having now, is that the MouseLook script (unlike the three others attached to the stock FPC) doesn't extend MonoBehaviour, and so I can't attach it to that second camera.

    So my question is this: Is this a minor bug in the new FPC, or am I supposed to be handling this situation differently?
     
unityunity