docs.unity3d.com
    目次を表示する/隠す

    Interface IJobFilter

    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.

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

    Methods

    Execute(Int32)

    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.

    Declaration
    bool Execute(int index)
    Parameters
    Type Name Description
    Int32 index

    Index to use when reading job data for the purpose of filtering

    Returns
    Type Description
    Boolean

    Returns true for data at index

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)