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 test show in the validation box when the value of the rule is not valid.
Declaration
public abstract string HelpBoxText { get; }
Property Value
Type | Description |
---|---|
string |
MessageType
The type of the help box used to draw the HelpBoxText.
Declaration
public abstract MessageType MessageType { get; }
Property Value
Type | Description |
---|---|
MessageType |
State
The state of this validation rule.
Declaration
public abstract ValidationRuleState State { get; protected set; }
Property Value
Type | Description |
---|---|
ValidationRuleState |
Methods
ResetValidation()
Reset the state of the validation rule.
Declaration
public virtual void ResetValidation()
ValidateRule(Object)
Used to validate the rule against a specific content.
Declaration
public abstract void ValidateRule(Object content)
Parameters
Type | Name | Description |
---|---|---|
Object | content | The content to validate |