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

    Interface IModifier

    IModifier is an interface which modifies incoming assets. Subclass of IModifier must have CustomModifier attribute.

    Namespace: UnityEngine.AssetGraph
    Syntax
    public interface IModifier

    Methods

    IsModified(Object[], List<AssetReference>)

    Test if incoming assset is different from this IModifier's setting.

    Declaration
    bool IsModified(Object[] assets, List<AssetReference> group)
    Parameters
    Type Name Description
    UnityEngine.Object[] assets

    Assets.

    List<AssetReference> group
    Returns
    Type Description
    Boolean

    true if this instance is modified the specified assets; otherwise, false.

    Modify(Object[], List<AssetReference>)

    Modify incoming assets.

    Declaration
    void Modify(Object[] assets, List<AssetReference> group)
    Parameters
    Type Name Description
    UnityEngine.Object[] assets

    Assets.

    List<AssetReference> group

    OnInspectorGUI(Action)

    Draw Inspector GUI for this Modifier.

    Declaration
    void OnInspectorGUI(Action onValueChanged)
    Parameters
    Type Name Description
    Action onValueChanged

    On value changed.

    OnValidate()

    Called when validating this prefabBuilder. NodeException should be thrown if this modifier is not ready to be used for building.

    Declaration
    void OnValidate()
    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