docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Contains

    Contains(GameObject)

    Check if the given GameObject is present as a prefab within the list

    Declaration
    public bool Contains(GameObject prefab)
    Parameters
    Type Name Description
    GameObject prefab

    The prefab to check

    Returns
    Type Description
    bool

    Whether or not the prefab exists

    Contains(NetworkPrefab)

    Check if the given NetworkPrefab is present within the list

    Declaration
    public bool Contains(NetworkPrefab prefab)
    Parameters
    Type Name Description
    NetworkPrefab prefab

    The prefab to check

    Returns
    Type Description
    bool

    Whether or not the prefab exists

    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)