Documentation

Unity Engine


Unity Engine


ConstructComponentFromBuffer(TypeIndex, void*)

Used by codegen. Create an instance of a component type from a given buffer of data
Read time 1 minuteLast updated 3 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public static object ConstructComponentFromBuffer(TypeIndex typeIndex, void* data)

Parameters

typeIndex

Component type index

data

Component instance data

Returns

Type

Description

ObjectBoxed component instance