docs.unity3d.com
    Show / Hide Table of Contents

    Method SetChunkComponentData

    SetChunkComponentData<T>(ComponentTypeHandle<T>, T)

    Sets the value of a chunk component.

    Declaration
    public void SetChunkComponentData<T>(ComponentTypeHandle<T> chunkComponentTypeHandle, T value)
        where T : struct
    Parameters
    Type Name Description
    ComponentTypeHandle<T> chunkComponentTypeHandle

    An object containing type and job safety information. Create this object by calling GetComponentTypeHandle<T>(Boolean) immediately before scheduling a job. Pass the object to a job using a public field you define as part of the job struct.

    T value

    A struct of type T containing the new values for the chunk component.

    Type Parameters
    Name Description
    T

    The data type of the chunk component.

    In This Article
    • SetChunkComponentData<T>(ComponentTypeHandle<T>, T)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023