uezo / ChatdollKit

ChatdollKit enables you to make your 3D model into a chatbot
Apache License 2.0
693 stars 74 forks source link

Error when the face expression is not resistered #232

Open uezo opened 1 year ago

uezo commented 1 year ago
          Thank you for your help! The bug is fixed. However, another one shows up as follows:
KeyNotFoundException: The given key 'Neutral' was not present in the dictionary.
System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <1c8569827291471e9db0dcd976e97952>:0)
ChatdollKit.Model.VRCFaceExpressionProxy.SetExpressionSmoothly (System.String name, System.Single value) (at Assets/ChatdollKit/Scripts/Model/VRCFaceExpressionProxy.cs:85)
ChatdollKit.Model.ModelController.UpdateFace () (at Assets/ChatdollKit/Scripts/Model/ModelController.cs:487)
ChatdollKit.Model.ModelController.Update () (at Assets/ChatdollKit/Scripts/Model/ModelController.cs:104)

I guess the problem is that a non-existing expression is used?

Although I have programming experience, I am new to Unity. Again, I need your advice.

Originally posted by @royshan in https://github.com/uezo/ChatdollKit/issues/230#issuecomment-1584613380

uezo commented 1 year ago

↑This should be warning, not error.