property firstResource

(r/o) resource firstResource;

Typ

Zugriff

This property returns back the first resource object found in this library. Once the firstResource is iteration is reset to the start of the library. See nextResource property for more information.
var lib = scene.importLibrary("box://app/theme/goldTheme.box");
if (lib)
{
    var res = lib.firstResource;
    while (res)
    {
        shell.print("Resource ID: " + res.id);
        res = lib.nextResource;
    }
}