docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct MemsetNativeArray<T>

    Assign Value to each element of NativeArray

    Implements
    IJobParallelFor
    Namespace: Unity.Entities
    Assembly: Unity.Entities.dll
    Syntax
    [BurstCompile]
    public struct MemsetNativeArray<T> : IJobParallelFor where T : struct
    Type Parameters
    Name Description
    T

    Type of element in NativeArray

    Fields

    Name Description
    Source

    The destination array, to which the value is copied repeatedly.

    Value

    The value to copy repeatedly to the destination array.

    Methods

    Name Description
    Execute(int)

    This function is executed once for each work unit of the job, potentially concurrently. Each work unit copies one value into the destination array.

    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)