docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Rule

    Represents a rule which modifies the Severity of an Issue ReportItem or all of the ProjectIssues that share a Descriptor.

    Inheritance
    object
    Rule
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.ProjectAuditor.Editor
    Assembly: Unity.ProjectAuditor.Editor.dll
    Syntax
    [Serializable]
    public class Rule

    Fields

    Filter

    An optional location filter representing a ReportItem's location. If specified, this Rule applies to a single ReportItem. If the string is null or empty, this Rule applies to every ReportItem matching the Id.

    Declaration
    [JsonProperty("filter")]
    public string Filter
    Field Value
    Type Description
    string

    Id

    The Descriptor ID

    Declaration
    [JsonIgnore]
    public DescriptorId Id
    Field Value
    Type Description
    DescriptorId

    Severity

    The Severity level to apply to the issue(s) represented by this Rule

    Declaration
    [JsonProperty("severity")]
    public Severity Severity
    Field Value
    Type Description
    Severity

    Methods

    GetHashCode()

    Get the hashed integer representation of the Rule.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    The computed hash code.

    Overrides
    object.GetHashCode()
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)