- Home /
Question by
xainulabdeen · Nov 12, 2018 at 04:51 AM ·
textcanvasupdateperformance optimization
Updating Time test in Canvas generates a massive spikes . what should I do ????
Hye ! I am working on performance issues for a while and got my hand on most of the issues but there is one issue i am stuck on . I have text field in canvas that represents time ( updating using time.delta time ) and I know is updating UI element in the canvas makes the game laggy but for this problem i don't know the alternate method....... Really need help
thanks.!!!!
public class UIUpdating : MonoBehaviour{
public Text timeText;
void Update(){
timeText.text =Time.deltaTime.toString("F1");
}
}
Comment