Version: 5.3 (switch to 5.4b)
ЯзыкEnglish
  • C#
  • JS

Язык программирования

Выберите подходящий для вас язык программирования. Все примеры кода будут представлены на выбранном языке.

UploadHandler.contentType

Предложить изменения

Успех!

Благодарим вас за то, что вы помогаете нам улучшить качество документации по Unity. Однако, мы не можем принять любой перевод. Мы проверяем каждый предложенный вами вариант перевода и принимаем его только если он соответствует оригиналу.

Закрыть

Ошибка внесения изменений

По определённым причинам предложенный вами перевод не может быть принят. Пожалуйста <a>попробуйте снова</a> через пару минут. И выражаем вам свою благодарность за то, что вы уделяете время, чтобы улучшить документацию по Unity.

Закрыть

Отменить

Руководство
public var contentType: string;
public string contentType;

Описание

Determines the default Content-Type header which will be transmitted with the outbound HTTP request.

If the parent UnityWebRequest does not have a custom Content-Type header set, then the value of this property will be used to determine the value of the Content-Type header for the HTTP request.

Note: If the parent UnityWebRequest has a custom Content-Type header set, then the value of this property is ignored. If this property is null or an empty string, and the parent UnityWebRequest has no custom Content-Type header, then a default Content-Type will be assigned (usually application/octet-stream).

Default value: null.