Dynamic loading assets

MAY I ask if I were to judge the availability of the resources in the project, when the resource exists in the project, and immediate loading, how to do it?