ドキュメント

Unity Engine

Download Unity

Unity Engine

ConstructRoot<T>()

Creates the top-level fields of a single blob asset.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public ref T ConstructRoot<T>() where T : struct

Returns

Type

Description

TA reference to the blob data under construction.

Remarks

This function allocates memory for the top-level fields of a blob asset and returns a reference to it. Use this root reference to initialize field values and to allocate memory for arrays and structs.