Changing Properties
Guide
In this guide, we will make a toggle in the menu to make Moe's Big Ear
blendshape changes to 100.
0. Create a menu group and a smart control item
This guide requires you to have an existing menu group ready. Follow this guide to create a new menu group.
You can create one directly from the menu group component, or alternatively create a new GameObject under that menu group and add the DT Smart Control component.
1. Set up the menu item driver
Make sure the driver is Menu Item
and the type is Toggle
. Customize the name and icon as you like.
2. Create a property group
3. Drag the Ear object to the fields
Make sure the selection type is Normal
. Drag the Ear object to the add field of Include these objects
and Pick Properties From
.
For more details about property groups, check here.
4. Add the blendshape property
Find the SkinnedMeshRenderer
component and click on Blendshapes
. And find the Big ear
blendshape and add it.
Click the Blendshapes
button again to hide the results.
5. Set the value on active
Set it to 100
or whatever value you want when the control is active.
6. Done!
Enter play mode and test the result!