Version 3.1.1.0

RuleConfig class

Namespace: Sirenix.OdinValidator.Editor
Assembly: Sirenix.OdinValidator.Editor
public class RuleConfig : GlobalConfig<RuleConfig>, ISerializedRulesContainer
Inheritance

Constructors

RuleConfig()
public RuleConfig()

Properties

DefaultLocalRulePath
public static string DefaultLocalRulePath { get; }
LocalRulePath
public static EditorPrefString LocalRulePath { get; }

Methods

GetDefaultRules()
public static List<SerializedRule> GetDefaultRules()
Returns
System.Collections.Generic.List<SerializedRule>

GetRuleDataWrapper()
public RuleDataWrapper GetRuleDataWrapper()
Returns
RuleDataWrapper

InstantiateDefaultRules()
public static List<SerializedRule> InstantiateDefaultRules()
Returns
System.Collections.Generic.List<SerializedRule>

InstantiateValidator(Type)
public static Validator InstantiateValidator(Type validatorType)
Parameters
System.Type validatorType

Returns
Validator

LoadRules()
public void LoadRules()
SaveRules()
public void SaveRules()
SetLocalRules(List<SerializedRule>)
public void SetLocalRules(List<SerializedRule> rules)
Parameters
System.Collections.Generic.List<SerializedRule> rules

SetProjectRules(List<SerializedRule>)
public void SetProjectRules(List<SerializedRule> rules)
Parameters
System.Collections.Generic.List<SerializedRule> rules