Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

UnityWebRequest.GenerateBoundary

public static byte[] GenerateBoundary();

Returns

byte[] 40 random bytes, guaranteed to contain only printable ASCII values.

Description

Generate a random 40-byte array for use as a multipart form boundary.

Did you find this page useful? Please give it a rating: