Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryLoadAsset(out Object)

Tries to resolve the entry's asset without loading asynchronously.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Method
  • Namespace: Unity.Localization
  • Assembly: UnityEngine.LocalizationRuntimeModule

TryLoadAsset(Object)

bool TryLoadAsset(out Object asset)

Parameters

asset

The resolved asset, or
null
on a miss.

Returns

Type

Description

bool
true
when the asset resolved synchronously; otherwise
false
.

Remarks

Return
true
and set
asset
when the asset resolves immediately; return
false
on a miss and leave
asset
as
null
.