x


How do I use different textures on separate instances of the same model?

I have an atlased texture containing 5 different images, each of which I want to use on a separate instance of the same model in my scene. I can create a different UV map for each one in Blender, but Unity only seems to use the first one. I thought I might be able to use the .fbx exporter to export 5 different files for the same model, each with a different UV, but there doesn't seem to be any way to select which UV map gets exported.

more ▼

asked Apr 06 '12 at 12:19 AM

Curyous gravatar image

Curyous
70 10 17 19

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Use the texture offset on a material in Unity.

more ▼

answered Apr 06 '12 at 12:23 AM

Eric5h5 gravatar image

Eric5h5
80.1k 41 132 519

All models use the same material, so that changes the offset on all of the instances of the model.

Apr 06 '12 at 12:43 AM Curyous

Assign different materials to different models then. (Incidentally, changing "renderer.material.mainTextureOffset" in code will create new instances of the material at runtime for you.)

Apr 06 '12 at 12:48 AM Eric5h5
(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:

x2188
x28

asked: Apr 06 '12 at 12:19 AM

Seen: 484 times

Last Updated: Apr 06 '12 at 12:48 AM