文档

Unity Engine

Unity Engine

SetPointer<T>(ref BlobPtr<T>, ref T)

Sets a BlobPtr to point to the given object inside the blob.
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

SetPointer<T>(BlobPtr<T>, T)

public ref T SetPointer<T>(ref BlobPtr<T> ptr, ref T obj) where T : struct

Parameters

A reference to a blob pointer field in a blob asset.

obj

T
The struct that exists in the blob that you want to point to.

Returns

Type

Description

TA reference to obj.