Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DescriptorId

An unique identifier for an Issue Descriptor. IDs must have exactly 3 upper case characters, followed by 4 digits.
Read time 1 minuteLast updated 12 days ago

Definition

public struct DescriptorId : IEquatable<DescriptorId>, ISerializationCallbackReceiver

Remarks

ReportItems representing Issues (as opposed to Insights: purely informational ProjectIssues) all contain a DescriptorId. The DescriptorId is used to reference the information about a particular issue (for example, "PAC2002" is the code for "Object allocation"), and the ReportItem simply contains the file:line location in code where the allocation occurs and a "PAC2002" DescriptorId. The descriptor can generally be treated as a string, but for efficient descriptor lookups the string is converted to an int in the struct's constructor.

Constructors

Constructor

Description

DescriptorId(System.String)Constructor

Methods

Method

Description

AsIntGet the hashed integer representation of the ID
AsStringGet the string representation of the ID
EqualsChecks whether two DescriptorIDs contain the same ID.
GetDescriptorGet the Descriptor which corresponds to this ID.
IsValidChecks whether the ID has been successfully constructed from a correctly-formatted string.
OnAfterDeserializeUnity calls this method automatically after deserialization.
OnBeforeSerializeUnity calls this method automatically before serialization.
ToStringReturns the string representation of the ID

Operators

Operator

Description

DescriptorIdImplicit conversion of string to DescriptorId.
intImplicit conversion of DescriptorId to int.
stringImplicit conversion of DescriptorId to string.