- Home /
 
 
               Question by 
               Rcocuzzo8 · Apr 25, 2016 at 04:29 AM · 
                c#update functionupdate problemupdating  
              
 
              C# void FixedUpdate() only updating once
Hi guys, I have here a very simple 2D object that has a script which only updates once:
 using UnityEngine;
 using System.Collections;
 
 public class EnemyScript : MonoBehaviour {
 
     public GameObject player;
 
     // Update is called once per frame
     void FixedUpdate () {
             Debug.Log ("Log it ");
     }
 }
 
               
 
                 
                screen-shot-2016-04-24-at-95008-pm.png 
                (106.2 kB) 
               
 
              
               Comment
              
 
               
              Answer by quabug · Jun 15, 2016 at 06:18 AM
Set Edit -> Project Settings -> Time -> Time Scale to 1.
Or you can use code to set it Time.timeScale = 1
After that, FixedUpdate should working properly.
Your answer
 
             Follow this Question
Related Questions
Update breaks function 2 Answers
why do these both codes work similarly when they are put inside update function... 2 Answers
Finding object in update function not working. 0 Answers
why do these both codes work similarly when they are put inside update function... 3 Answers
Multiple Cars not working 1 Answer