docs.unity3d.com
    Show / Hide Table of Contents

    Class HasCapabilityRuleCreator

    Class that creates validation rules to check if any selected CapabilityProfile in CapabilityProfileSelection have a specific capability.

    Inheritance
    Object
    HasCapabilityRuleCreator
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.PolySpatial.Validation
    Syntax
    public sealed class HasCapabilityRuleCreator : IComponentRuleCreator

    Constructors

    HasCapabilityRuleCreator(String)

    Class constructor.

    Declaration
    public HasCapabilityRuleCreator(string capabilityKey)
    Parameters
    Type Name Description
    String capabilityKey

    The capability key to validate.

    Exceptions
    Type Condition
    ArgumentException

    Throws when the capabilityKey parameter is null or empty.

    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
    public 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.

    Implements
    IComponentRuleCreator.CreateRules(Component, List<BuildValidationRule>)

    See Also

    StandardCapabilityKeys
    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