Version: 2022.3

AssetDatabaseLoadOperation

class in UnityEditor

/

继承自:AsyncOperation

切换到手册

描述

This operation allows you to track the progress and access the result of an asynchronus AssetDatabase load operation.

变量

LoadedObjectThe resulting Object of the asynchronus load operation. This will be null on failure.

继承的成员

变量

allowSceneActivation允许在场景准备就绪后立即激活场景。
isDone操作是否已完成?(只读)
priorityPriority 允许您调整执行异步操作调用的顺序。
progress获取操作进度。(只读)

Events

completed操作完成时调用的事件。即使操作能够同步完成,也将在下一帧调用在创建它的调用所在的帧中注册的事件处理程序。如果处理程序是在操作完成后注册的,并且已调用 complete 事件,则将同步调用该处理程序。