Class ComponentUtility | Asset Graph | 1.7.2-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class ComponentUtility

    Inheritance
    Object
    ComponentUtility
    Namespace: UnityEngine.AssetGraph
    Syntax
    public class ComponentUtility

    Methods

    DestroyComponentsMatching(GameObject, ComponentUtility.IsDesiredComponent)

    Declaration
    public static void DestroyComponentsMatching(GameObject dst, ComponentUtility.IsDesiredComponent componentFilter)
    Parameters
    Type Name Description
    GameObject dst
    ComponentUtility.IsDesiredComponent componentFilter

    ReplaceComponentsIfDifferent(GameObject, GameObject, ComponentUtility.IsDesiredComponent)

    Declaration
    public static void ReplaceComponentsIfDifferent(GameObject src, GameObject dst, ComponentUtility.IsDesiredComponent componentFilter)
    Parameters
    Type Name Description
    GameObject src
    GameObject dst
    ComponentUtility.IsDesiredComponent componentFilter
    In This Article
    • Methods
      • DestroyComponentsMatching(GameObject, ComponentUtility.IsDesiredComponent)
      • ReplaceComponentsIfDifferent(GameObject, GameObject, ComponentUtility.IsDesiredComponent)
    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