Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Verify resources

Discussion in '2D' started by rames44, Mar 19, 2018.

  1. rames44

    rames44

    Joined:
    Mar 24, 2017
    Posts:
    6
    Is there an efficient method of determining whether a particular resource exists _without_ actually loading it?

    I have an app that has an internal scripting language. What I'm trying to do is to scan to see if all the resources (all in subfolders under Assets/Resources) referenced by the scripts are actually present. Obviously, I _could_ do a Resources.Load on each one, but that's hardly going to be performant. I was wondering if there was a way of either testing to see if a resource existed without loading it, or else get a list of all the available resource paths or something similar.