LazyLoadReference<T0> Constructor
Suggest a change
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close
Declaration
public LazyLoadReference<T0>(T asset);
Declaration
public LazyLoadReference<T0>(EntityId entityId);
Parameters
Parameter |
Description |
asset |
The asset reference. |
entityId |
The asset EntityId. |
Description
Construct a new LazyLoadReference.
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.
Obsolete
Use LazyLoadReference(EntityId entityId) instead, this will be removed in a future version.
Declaration
public LazyLoadReference<T0>(int instanceID);
Parameters
Parameter |
Description |
instanceID |
The asset instance id. |
Description
Construct a new LazyLoadReference.
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.