⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

Assets.BlockUntil

static void BlockUntil(IAsset asset, AssetState state)

This will block execution until the given asset reaches the specified loading state. If the asset has already reached or passed that state, this returns immediately. If the asset is in an error state, this also returns immediately.

   
IAsset asset The asset to wait on.
AssetState state The state to wait for, such as AssetState.Loaded or AssetState.LoadedMeta.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!