文档

Unity Engine

Unity Engine

ConstructComponentFromBuffer(TypeIndex, void*)

Used by codegen. Create an instance of a component type from a given buffer of data
阅读时间1 分钟最后更新于 19 天前

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