기술 자료

Unity Engine

Unity Engine

LazyLoadReference

Construct a new LazyLoadReference.
읽는 시간 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 instance ID will never triggers a load.

LazyLoadReference(int)

Construct a new LazyLoadReference.
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 triggers a load.