logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class MinimalLoopOptionsValidator

    Validates a MinimalLoopOptions instance before it is turned into a recipe: every id must be non-empty, the ids the author controls must not collide with each other or with ids already used in the project, and the output root must be a project path under Assets/.

    Inheritance
    object
    MinimalLoopOptionsValidator
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.ProjectRecipe.Infrastructure.Editor.SetupAssistant
    Assembly: Serenity.UnitySetupAssistant.Infrastructure.Editor.dll
    Syntax
    public static class MinimalLoopOptionsValidator

    Methods

    Validate(MinimalLoopOptions, IReadOnlyList<string>)

    Validates options against basic shape rules and id collisions.

    Declaration
    public static List<string> Validate(MinimalLoopOptions options, IReadOnlyList<string> existingIds)
    Parameters
    Type Name Description
    MinimalLoopOptions options

    The options to validate.

    IReadOnlyList<string> existingIds

    Ids already used by foundation assets in the project (any type), used to catch collisions with pre-existing content. Pass an empty collection when there is nothing to compare against yet.

    Returns
    Type Description
    List<string>

    One error string per problem found; empty when options is valid.

    In this article
    © 2026 Serenity. All Rights Reserved