Hi Everyone, im having an issue where im setting up a first person camera, I have created a player object with a camera and capsule as children made a movement script which works fine and now im making a script for the camera, my issue is that the code doesn't detect when my my mouse is moving. If any body had any insight into this issue i'd really appreciate (no syntax errors in code I can provide a picture if necessary of the code)
#Camera Look Settings
1 messages · Page 1 of 1 (latest)
not brackeys a guy named Plai
here's the code
i have attached it to the player object in my scene
you call a [SerializeField] private float senX; However you never say what it is
is the camera actually assigned and is the sensitivity higher than 0?
That too
but SensX is nothing in this case
how do you know
Wait
I'm confusing it with smth
Its a float not- nvm
How do you mean is camera assigned ?
I read it as bool
Send a ss of the Inspector
make the camera public then assign it in the inspector, instead of getting it as children
No thats the Hierarchy
i'm a bit slow at time
The Inspector
put Public before the Camera in the code
that too
and drag the Camera object into the inspector slot
something to remind for later:
float (thing) Or anything else automatically goes to Private
public float (Thing) or anything else goes to Public
okay i have done both making it public and assigned the camera to the inspector
show the inspector
but the input still wont recognize
screenshot it
one more question if anyone sees this, i just added a jump to the player movement, the issue, i just fly away, i think the isGrounded bool i made currently has no value, but how would I enable this.
unity says issue is on line 42
If this is fixed, please archive the thread