How do I convert the time of a Video Player, which is a double, into a float that I can then do math with?

前端 未结 0 478
囚心锁ツ
囚心锁ツ 2021-01-16 11:20

\'\'\'

public VideoPlayer video;
public Text texting;
public float x = 0f;

void Update()
{
    x = (float)video.time;
    texting.text = (Mathf.Round((float)         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题