XOrdinary99 / unity-vroid-scripts

Apache License 2.0
25 stars 10 forks source link

Copier Error #1

Open VRArt1 opened 3 years ago

VRArt1 commented 3 years ago

I've tried loading in the blendshape copier script but it appears to not be functioning. I'm using the currently recommended 2019.4.17f1 version of unity for reference. It's mentioning an error that Monospace could not be found.

alankent commented 3 years ago

Since this script does not mention “Monospace”, I am guessing it’s something else in the project. But i would also suggest checking out things like Hana_tool which is better quality. They have a few tools available now https://twitter.com/nikutokuni/status/1338988698055000067?s=21

VRArt1 commented 3 years ago

Correction I meant Monobehaviour.

alankent commented 3 years ago

Ah! The script above might be just a snippet (my computer is baking light maps at the moment - unusable for another 12 hours ;-). Might need “using UnityEngine;” as the first line. It might also need using System.Collections. What I suggest, if you want to keep going, is to use Unity to create a new script then replace the class definition body with the above body. Googling I found some people saying the script name had to match the class name, someone else saying they just created a new file and things started magically working... great!

Personally, I stopped using the above. I suspect there is some other special magic you need to do. What I now instead do is use Hana_Tool and edit the JSON files it reads from instead. I have found it to be more reliable, and as a bonus it also runs faster. For example, I worked out all the blendshapes I wanted to add and created the JSON file that Hana_tool reads from. I then let Hana_Tool worry about the mysterious innards of blendshapes manipulation.