Class ValidationRule
Base abstract class for all the IValidationRule. Provide ScriptableObject and base validation functionalities.
Implements
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Services.Ugc.Bridge.Editor
Assembly: Unity.Services.Ugc.Bridge.Editor.dll
Syntax
public abstract class ValidationRule : ScriptableObject, IValidationRule
Properties
HelpBoxText
The help box text.
Declaration
public abstract string HelpBoxText { get; protected set; }
Property Value
Type | Description |
---|---|
string |
MessageType
The message type.
Declaration
public abstract MessageType MessageType { get; protected set; }
Property Value
Type | Description |
---|---|
MessageType |
State
The validation rule state.
Declaration
public abstract ValidationRuleState State { get; protected set; }
Property Value
Type | Description |
---|---|
ValidationRuleState |
Methods
ResetValidation()
Reset the validation rule state.
Declaration
public virtual void ResetValidation()
ValidateRule(Object)
Validate the rule.
Declaration
public abstract void ValidateRule(Object content)
Parameters
Type | Name | Description |
---|---|---|
Object | content | The content to validate. |