Class HasCapabilityRuleCreator
Class that creates validation rules to check if any selected CapabilityProfile in CapabilityProfileSelection have a specific capability.
Inherited Members
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 |
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. |