x


How can I dynamically load a substance?

How can I load a substance with Resources.Load()? Neither loading the Substance Archive nor loading the contained material instance directly seem to work. The result is a null object. That's how i try to load the substance:

ProceduralMaterial substance = Resources.Load(path) as ProceduralMaterial;
more ▼

asked Jul 28 '11 at 02:55 PM

mfm gravatar image

mfm
31 2 2 4

Bump. Anyone from UT? Is this a bug or just not possible?

Aug 29 '11 at 02:27 PM mfm

Are you loading it from a folder named "Resources"?

Aug 29 '11 at 08:45 PM Eli Davis

Yes. I load it from the "Resources" Folder.

Aug 31 '11 at 06:11 PM mfm
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Whatever you are loading needs to be in resources folder or subfolder. Not an external folder. Should work after that.

more ▼

answered Aug 31 '11 at 07:10 AM

AngryMarine gravatar image

AngryMarine
76 1 2 4

I know. The substance is in the "Resources" folder.

Aug 31 '11 at 06:13 PM mfm
(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:

x419
x297
x36
x26

asked: Jul 28 '11 at 02:55 PM

Seen: 1088 times

Last Updated: Aug 31 '11 at 06:13 PM