docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Clear

    Clear()

    Sets the buffer length to zero.

    Declaration
    public void Clear()
    Implements
    Unity.Collections.INativeList<T>.Clear()
    Remarks

    The capacity of the buffer remains unchanged. Buffer memory is not overwritten.

    Examples
    buffer.Clear();
    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)