docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Rule Engine

    The Rule Engine is part of the preparation and optimization tools.

    Using the Rule Engine, you can define in a rule a sequence of Actions to execute (contrary to the Toolbox, which only runs individual actions), to automate the workflow for preparing, optimizing and staging your models

    Rules can be added as a post-process of the import (e.g. it proves very handy to import multiple files that are similar and that require identical processing), but you can also execute rules on any object in your scene, even models that you haven't imported with Asset Transformer Toolkit.

    Rules work with filters to define a selection, and modify assets from this selection with Actions (e.g.merging, decimation, and UV creation).

    Image

    Create Rule Sets

    The Rule Engine works with serialized sets of rules. You must first create a set of Rules.

    1. In the project folder, right-click and select Create > Asset Transformer > Rule Set.

    2. Set the name for your Rule Set.

    3. Edit the Rule Set from the dedicated Tab (automatically opens next to the Inspector)

    4. Add items to the sequence, for example Filters, Actions, and Rules.

      Rules are applied sequentially, from top to bottom.

      Note

      The list of Actions that you can access by selecting the Plus sign (+) is dynamic. The available actions depend on the previous conditions in the selected rule.

    5. To run the rule set, for example to test it, select Run. Alternatively, attach the Rule Set to a specific model importer through the the model import window and the Rule Engine tab, so it is executed as a post-process of the import process.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)