logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class LeaderboardViewDefinitionScanner

    The rules for whether an authored UnityLeaderboardViewDefinition will actually render: ids present, the board it points at exists, and a column/layout authoring that leaves something to draw.

    Inheritance
    object
    LeaderboardViewDefinitionScanner
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Leaderboard.Infrastructure.Validation
    Assembly: Serenity.UnityLeaderboard.Infrastructure.dll
    Syntax
    public static class LeaderboardViewDefinitionScanner
    Remarks

    Modelled on HudDefinitionScanner: engine-agnostic and resolver-free, so it runs in a plain NUnit test, in the editor, and in CI with no Unity asset database required. knownBoardIds is passed in rather than read from UnityLeaderboardSettings directly for the same reason.

    Methods

    Scan(UnityLeaderboardViewDefinition, IReadOnlyList<string>)

    Scans one leaderboard view definition.

    Declaration
    public static IReadOnlyList<AuthoringIssue> Scan(UnityLeaderboardViewDefinition view, IReadOnlyList<string> knownBoardIds)
    Parameters
    Type Name Description
    UnityLeaderboardViewDefinition view

    The view to scan.

    IReadOnlyList<string> knownBoardIds

    Every BoardId row authored on UnityLeaderboardSettings. Null or empty means the caller has no settings asset to check against, so the board-existence rule is skipped rather than flagging every view as pointing at an unknown board.

    Returns
    Type Description
    IReadOnlyList<AuthoringIssue>

    Every finding about the view.

    In this article
    © 2026 Serenity. All Rights Reserved