Documentation

Unity Engine


Unity Engine


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

Sets a BlobPtr to point to the given object inside the blob.
Read time 1 minuteLast updated 3 days ago

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.