x


How to scale a mesh after it's been combined with another?

A character in my game has her hair applied by combining a hair object with her skeleton. After combining, I can clearly see the hair object in her heirarchy and it has a "transform" attached.

I'd like to scale the mesh (it's a Skinned Mesh Renderer, not a regular Mesh) but using the transform does nothing. I'm not sure why, and I haven't been able to figure that out.

So...

Is there some way to scale the hair mesh without using a transform, but instead using something like the "Mesh class"? It only seems to be for regular meshes (not Skinned Meshes) and it also doesn't seem to have anything related to scaling.

Can anyone point me in the right direction for scaling a sub mesh through scripting without using a transform? I'm using Javascript.

more ▼

asked Sep 26 '10 at 04:46 AM

Ony gravatar image

Ony
888 29 36 48

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

1 answer: sort voted first

If your hair is skinned, then you should be able to scale the bones that it is skinned too (not the bone that hair-skinnedMeshRenderer is attached to).

You should be able to edit/modify mesh by modifying the vertices. This link should have some recourses about procedurally modifying meshes: http://unity3d.com/support/resources/example-projects/procedural-examples

more ▼

answered Sep 27 '10 at 09:35 AM

Paulius Liekis gravatar image

Paulius Liekis
7.3k 16 24 45

I can't scale the bone it's attached to as there are other things attached to that bone as well that I need to stay how they are. I ended up using a totally different way of achieving what I needed, but I never did figure out how to scale the object itself. There's a more detailed post I made here (http://forum.unity3d.com/threads/61495-Why-won-t-this-object-%28combined-mesh%29-scale) with screen shots if anyone else is interested. Even though I don't really need to know how to do this since I'm using a different way, it might still be helpful to know in the future.

Sep 27 '10 at 10:35 PM Ony
(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:

x1353
x1274
x386
x96
x31

asked: Sep 26 '10 at 04:46 AM

Seen: 1723 times

Last Updated: Sep 26 '10 at 04:46 AM