文档

Unity Engine

Unity Engine

uploadProgress

How far has the upload progressed (Read Only).
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UnityWebRequestWWWModule
警告
Deprecated. Use UnityWebRequest, a fully featured replacement which is more efficient and has additional features
public float uploadProgress { get; }

Remarks

This is a value between zero and one; 0 means nothing is sent yet, 1 means upload complete.
Since all sending of data to the server is done before receiving data,
uploadProgress
will always be 1.0 when
progress
is larger than 0.