/unity-vroid-scripts

Primary LanguageC#Apache License 2.0Apache-2.0

unity-vroid-scripts

  • CopyBlendShapes.cs - Simple code showing how to read and write blend shape definitions (does a verbatim copy).
  • CleveryBlendCopier.cs - Experimental Unity C# script to copy blend shapes from one VRoid characte Face to another, even if the meshes have been modified. (It does some expressions okay, but fails around the mouth.) See also this blog
  • AddIFacialMocapBlendShapes.cs - Experimental Unity C# script to generate blend shapes needed by ARKit (and ifacialmocap.com) from the default blend shapes from VRoid Studio (no use of Blender or other tools is required). Takes 5 to 10 minutes to run. See also this blog.
  • FaceTextureBlend.cs - Simple example of a script to update a modified VRM/MToon shader that has a "MainTex" and "SecondaryTex" texture, with a "TextureLerp" float where 0 = main texture, and 1 = secondary texture (so can animate blending between the two textures for blushing etc).
  • ElectricScooterLocomotion.cs - First cut at a script for a VRoid character to ride an electric scooter (free asset from Unity store). (blog)
  • BigChestBlendShape.cs & BigArmsBlendShape.cs - create a blendshape to make the chest and/or arms look more muscular. See blog for more details.