docs.unity3d.com
    Show / Hide Table of Contents

    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
    Back to top
    Copyright © 2023 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on Wednesday, October 18, 2023