Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetUserMetadata(string, string)

Set a custom metadata key-value pair to be included with crash reports.
Read time 1 minuteLast updated 19 days ago

Definition

public static void SetUserMetadata(string key, string value)

Parameters


value

Remarks

Set a value to null to clear a key.
Keys are limited to 255 characters and values to 1024 characters, and there is a limit of 64 key-value pairs. SetUserMetadata throws a System.ArgumentException if you attempt to exceed these limits.