Interface IFilter | Asset Graph | 1.6.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IFilter

    IFilter is an interface to create custom filter condition.

    Namespace: UnityEngine.AssetGraph
    Syntax
    public interface IFilter

    Properties

    Label

    Label string for the filter. Label string will be displayed in output point and outgoing connection.

    Declaration
    string Label { get; }
    Property Value
    Type Description
    String

    The label string.

    Methods

    FilterAsset(AssetReference)

    Filters the asset.

    Declaration
    bool FilterAsset(AssetReference asset)
    Parameters
    Type Name Description
    AssetReference asset

    Asset.

    Returns
    Type Description
    Boolean

    true, if asset meets filter criteria, false otherwise.

    OnInspectorGUI(Rect, Action)

    Draw Inspector GUI for this Filter. Make sure to call onValueChanged() when inspector values are modified. It will save state of AssetGenerator object.

    Declaration
    void OnInspectorGUI(Rect rect, Action onValueChanged)
    Parameters
    Type Name Description
    Rect rect
    Action onValueChanged

    Action to call when inspector value changed.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • 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 18 October 2023