{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Interface IJobFilter | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IJobFilter

    Filters a list of indices.

    Namespace: Unity.Jobs
    Assembly: solution.dll
    Syntax
    [JobProducerType(typeof(IJobFilterExtensions.JobFilterProducer<>))]
    public interface IJobFilter
    Remarks

    IJobFilter allows for custom jobs to implement a bool Execute(int index) job function used to filter a list of indices. For a provided list and index range, the list will be modified to append all indices for which Execute returns true or to exclude all indices for which Execute returns false depending on if ScheduleAppend or Schedule is used, respectfully, for enqueuing the job with the job system.

    Methods

    Name Description
    Execute(int)

    Filter function. A list of indices is provided when scheduling this job type. The Execute function will be called once for each index returning true or false if the job data at the passed in index should be filtered or not.

    In This Article
    Back to top
    Copyright © 2023 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)