#Camera Look Settings

1 messages · Page 1 of 1 (latest)

remote anchor
#

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)

orchid shard
#

Following brackey's?

#

And send code

remote anchor
#

not brackeys a guy named Plai

#

here's the code

#

i have attached it to the player object in my scene

orchid shard
#

you call a [SerializeField] private float senX; However you never say what it is

fallow hearth
#

is the camera actually assigned and is the sensitivity higher than 0?

orchid shard
#

but SensX is nothing in this case

fallow hearth
orchid shard
#

I'm confusing it with smth

#

Its a float not- nvm

remote anchor
#

How do you mean is camera assigned ?

orchid shard
#

I read it as bool

orchid shard
fallow hearth
remote anchor
#

like this ?

#

im sorry

orchid shard
#

No thats the Hierarchy

remote anchor
#

i'm a bit slow at time

orchid shard
#

The Inspector

fallow hearth
#

put Public before the Camera in the code

orchid shard
#

that too

fallow hearth
#

and drag the Camera object into the inspector slot

orchid shard
#

something to remind for later:
float (thing) Or anything else automatically goes to Private
public float (Thing) or anything else goes to Public

remote anchor
#

okay i have done both making it public and assigned the camera to the inspector

fallow hearth
#

show the inspector

remote anchor
#

but the input still wont recognize

fallow hearth
#

screenshot it

remote anchor
fallow hearth
#

sensitivity is 0

#

make it 5 or somethign

remote anchor
#

thank you ❤️

#

really appreciate your help 🙂

remote anchor
#

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

orchid shard
#

If this is fixed, please archive the thread