ドキュメント

Unity Engine

Unity Engine

LazyLoadReference

Construct a new LazyLoadReference.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Constructor
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

LazyLoadReference(T)

Construct a new LazyLoadReference.
public LazyLoadReference(T asset)

Parameters

asset

T
The asset reference.

Remarks

Note that the signature which takes an asset reference may trigger loading the referenced object into memory if the object is not already loaded. The signature which takes an EntityId will never trigger a load.

LazyLoadReference(EntityId)

Construct a new LazyLoadReference.
public LazyLoadReference(EntityId entityId)

Parameters

entityId

The asset EntityId.

Remarks

Note that the signature which takes an asset reference may trigger loading the referenced object into memory if the object is not already loaded. The signature which takes an EntityId will never trigger a load.

LazyLoadReference(int)

Construct a new LazyLoadReference.
注意
Removed. Use LazyLoadReference(EntityId entityId) instead, this will be removed in a future version
public LazyLoadReference(int instanceID)

Parameters

instanceID

The asset instance id.

Remarks

Note that the signature which takes an asset reference may trigger loading the referenced object into memory if the object is not already loaded. The signature which takes an instance id will never trigger a load.