LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

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.