Documentation

Unity Engine

Download Unity

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 a month 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