x


Finding assets from script

Hello,

Is there a possibility to find all assets with given part of name? I mean they are not loaded. Just stored somewhere in the assets. The way to get all of the assets names to search inside them manually is also solution.

more ▼

asked Feb 22 '10 at 02:26 PM

Santa gravatar image

Santa
477 20 24 37

You may want to correct the question subject to "finding".

Feb 23 '10 at 05:14 PM Ricardo

Sure. Thank you.

Feb 28 '10 at 03:02 PM Santa
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

For looking up assets by name, they need to be in the Resources folder. However, it's worth nothing that this is generally not the generally recommended way of referencing assets for the purpose of instantiating objects etc.

There are legitimate uses for the Resources folder, and looking up assets by name, however you should be sure that you understand the benefits of the other methods of accessing other objects before deciding that the Resources folder method is the most appropriate for your case.

more ▼

answered Feb 22 '10 at 04:11 PM

duck gravatar image

duck ♦♦
41.4k 95 152 415

Thank you for the response. As far as I understood this methods are for accessing objects by their full name. But is there a method to get list of this full names?

Feb 27 '10 at 11:25 AM Santa
(comments are locked)
10|3000 characters needed characters left

there are two ways for finding assets with their name and path. the first one is resource folders and the second one is asset bundles. asset bundles are packs of assets and you can load them with www class. simply put the inside your project folder and use www ("file://path/assetbundleName");

more ▼

answered Feb 22 '10 at 05:43 PM

Ashkan_gc gravatar image

Ashkan_gc
9.3k 33 56 120

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5275
x428
x212

asked: Feb 22 '10 at 02:26 PM

Seen: 5040 times

Last Updated: Feb 28 '10 at 03:01 PM