snipsco-samples / quickstart-unity

Sample code for the Unity Quick Start guide on the Snips Dev Center
MIT License
1 stars 3 forks source link

Errors when importing into Unity 2019.2.12f #1

Open DarrellAucoin opened 4 years ago

DarrellAucoin commented 4 years ago

I'm trying to install Snips AI on a Unity game (Unity 2019.2.12f). I am hoping to be able to install this on a Oculus Quest VR Headset. However I am getting some errors:


Assets\quickstart-unity\Assets\Snips\Scripts\TTSHandler.cs(46,25): warning CS0618: 'AudioClip.Create(string, int, int, int, bool, bool)' is obsolete: 'The _3D argument of AudioClip is deprecated. Use the spatialBlend property of AudioSource instead to morph between 2D and 3D playback.'

Assets\quickstart-unity\Assets\Snips\Scripts\AudioServer.cs(22,15): warning CS0108: 'AudioServer.audio' hides inherited member 'Component.audio'. Use the new keyword if hiding was intended.

Assets\quickstart-unity\Assets\Snips\Scripts\TTSHandler.cs(22,15): warning CS0108: 'TTSHandler.audio' hides inherited member 'Component.audio'. Use the new keyword if hiding was intended.

Assets\quickstart-unity\Assets\Snips\Utilities\MQTT\scripts\MqttClient.cs(110,33): warning CS0649: Field 'MqttClient.caCert' is never assigned to, and will always have its default value null

Also there were errors related to assigned but never used variables:


Assets\quickstart-unity\Assets\Snips\Scripts\AudioServer.cs(30,8): warning CS0414: The field 'AudioServer.soundloaded' is assigned but its value is never used

Assets\quickstart-unity\Assets\Snips\Scripts\TTSHandler.cs(46,25): warning CS0618: 'AudioClip.Create(string, int, int, int, bool, bool)' is obsolete: 'The _3D argument of AudioClip is deprecated. Use the spatialBlend property of AudioSource instead to morph between 2D and 3D playback.'

How do I fix these errors, especially the one related to the global game manager. I can't even find what file(s) this is referring to

DarrellAucoin commented 4 years ago

I did find recompiling helped get rid of the errors (basically deleting Library folder and opening up the project again)