- Home /
How do I get access to "expression.shout" and "teeth_shout" in Unity C# scripting?
For face expressions, how do I get access to "expression.shout" and "teeth_shout" in Unity C# scripting?
But what are those? There is no Unity class called "Ëxpression". Are you using some plugin from asset store or what?
I was referencing the solution mentioned in the following link, for Autodesk characters imported into Unity:
That doesn't really give us anything. What object type you are working with? Did you found those parameters and can't access them by code? Do you need help finding the parameters?
Answer by Bunny83 · Feb 19, 2019 at 11:02 AM
I guess you talk about blend shape animations in your character?
Well first of all your model need to have blendshape animations. So that's not something you can simply "use" since they need to be created outside of Unity in a modelling tool. If your model has blendshapes you can use the blendShapeCount and GetBlendShapeName of your mesh in order to find the index of a specific blendshape.
Once you have the index you can use SetBlendShapeWeight of your skinned mesh renderer in order to change the weight of a particular blendshape. That's all.
Of course the names the blendshapes are arbitrary as they are created by the 3d artist / modelling tool.
Your answer
Follow this Question
Related Questions
what would you call this face? 0 Answers
Simulate facial expression according word or sentence 0 Answers
How to move object base on where it is facing? 0 Answers