Interface IComponentRuleCreator
An interface that represents a creator of validation rules for components.
Namespace: UnityEditor.PolySpatial.Validation
Syntax
public interface IComponentRuleCreator
Methods
CreateRules(Component, List<BuildValidationRule>)
Creates validation rules for the given component. This method is automatically called by Unity when a component of the registered type is detected in the loaded scenes.
Declaration
void CreateRules(Component component, List<BuildValidationRule> createdRules)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | component | The component to create validation rules. Only components in loaded scenes are used. |
| List<Unity.XR.CoreUtils.Editor.BuildValidationRule> | createdRules | Returns the newly created validation rules. |
See Also
UnityEditor.PolySpatial.Validation.IPropertyValidator