文档

Unity Engine

Unity Engine

originalImmutable

It tells the InstantiateAsync if it's safe to do the serialization step async.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool originalImmutable

Remarks

By default InstantiateAsync serializes all the data before returning and the only async part is the creation of the new objects. This is to avoid issues in the case that the object that we are cloning is modified or deleted. If this flag is set, the serialization will also be async, allowing it to return way earlier.