Class ContentValidationStep
Base abstract class for a validation IUgcBridgeStep. Provide ScriptableObject and base validation functionalities.
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 ContentValidationStep : ScriptableObject
Properties
ValidationInfoText
Text information about the validation process. This is usually displayed at the top of the validation window.
Declaration
public abstract string ValidationInfoText { get; }
Property Value
Type | Description |
---|---|
string |
ValidationRules
A IValidationRule array representing the set of rules the validation will validate/process.
Declaration
public abstract IValidationRule[] ValidationRules { get; }
Property Value
Type | Description |
---|---|
IValidationRule[] |
Methods
Initialize()
Initialize the ContentValidationStep asset. Override it for custom fields initialization.
Declaration
public virtual void Initialize()
OnFocus()
Called when the parent window is focused
Declaration
public virtual void OnFocus()
OnGUI()
Draw the GUI of the ContentValidationStep asset.
Declaration
public abstract void OnGUI()
ResetValidations()
Reset all IValidationRule to NotValidated state.
Declaration
public virtual void ResetValidations()
ValidateContent()
Launch the validation process on the content being published.
Declaration
public abstract bool ValidateContent()
Returns
Type | Description |
---|---|
bool | Returns true if the content is valid, false otherwise. |