- Home /
 
               Question by 
               Str1kedown · Jun 04, 2020 at 03:50 PM · 
                c#cameramovementobject  
              
 
              Disable Camera Movement,Stop camera movement
Hi!
I'm new to all of this and I'm coming across the first problem.
I got a simple code to move my object, but while in play my topdown camera also moves while holding down the keys. I didn't find an option to disable this, so what do I need to do to just move my object, not the view?
Here an example code I'm using:
 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 
 public class Player : MonoBehaviour
 {
     // Start is called before the first frame update
     void Start()
     {
         transform.position = new Vector3(0, 10, 0);
     }
 
     // Update is called once per frame
     void Update()
     {
         Vector3 input = new Vector3(Input.GetAxisRaw("Horizontal"), 0, Input.GetAxisRaw("Vertical"));
         print(input);
     }
 }
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                