Search Unity

Can't add new Mouselook (Unity 5)

Discussion in 'Scripting' started by sramsay, Mar 5, 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?

    [I posted this in the Unity 5 pre-order forum, but didn't get an answer.]
     
  2. sramsay

    sramsay

    Joined:
    Dec 25, 2014
    Posts:
    3
    Never mind. I had these object parented incorrectly (though I still find it a little odd that mouselook is no longer a component you can just put on an object).