docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DeleteComponentByType

    DeleteComponentByType(ComponentType, uint, bool)

    Delete component from type

    Declaration
    public void DeleteComponentByType(ComponentType componentType, uint occurrence, bool followPrototypes = true)
    Parameters
    Type Name Description
    ComponentType componentType

    Type of the component

    uint occurrence

    The occurrence to remove components from

    bool followPrototypes

    If true and if the component is not set on the occurrence, try to find it on its prototyping chain

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