docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method HasBuffer

    HasBuffer<T>(int)

    Check if the a component of type T is present this spawning ghost.

    Declaration
    public bool HasBuffer<T>(int ghostTypeIndex) where T : unmanaged, IBufferElementData
    Parameters
    Type Name Description
    int ghostTypeIndex

    The index in the GhostCollectionPrefabSerializer collection

    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T
    In This Article
    Back to top
    Copyright © 2023 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)