docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IValidationRule

    Base interface for all UGC Bridge validation rules.

    Namespace: Unity.Services.Ugc.Bridge.Editor
    Assembly: Unity.Services.Ugc.Bridge.Editor.dll
    Syntax
    public interface IValidationRule

    Properties

    HelpBoxText

    The test show in the validation box when the value of the rule is not valid.

    Declaration
    string HelpBoxText { get; }
    Property Value
    Type Description
    string

    MessageType

    The type of the help box used to draw the HelpBoxText.

    Declaration
    MessageType MessageType { get; }
    Property Value
    Type Description
    MessageType

    State

    The state of this validation rule.

    Declaration
    ValidationRuleState State { get; }
    Property Value
    Type Description
    ValidationRuleState

    Methods

    ResetValidation()

    Reset the state of the validation rule.

    Declaration
    void ResetValidation()

    ValidateRule(Object)

    Used to validate the rule against a specific content.

    Declaration
    void ValidateRule(Object content)
    Parameters
    Type Name Description
    Object content

    The content to validate

    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)