Page 1 of 1

Phidgets22: Basic Project Not Working Because of 1 Line

Posted: Thu Apr 11, 2024 2:35 am
by carybanks
Hello,
I'm trying to get a basic project running in Unity, and I'm having some trouble just getting the code to run. Apparently, "Phidget.ResetLibrary()" is not a recognizable function in Phidget22 anymore - at least, that's what I'm understanding, because it's the only line of the whole code that comes up as an error. geometry dash scratch

Code: Select all

void OnApplicationQuit()
        {
		if (Application.isEditor)
			Phidget.ResetLibrary();
		else
			Phidget.FinalizeLibrary(0);
	}
I can't just default the command to "Phidget.FinalizeLibrary(0)", because that just crashes my Unity Editor. Any suggestions to solve this issue?

Re: Phidgets22: Basic Project Not Working Because of 1 Line

Posted: Thu Apr 11, 2024 9:43 am
by LucasP
There are some basic projects on this page that show how to get started with Unity.

Re: Phidgets22: Basic Project Not Working Because of 1 Line

Posted: Thu Apr 11, 2024 11:29 am
by Patrick
Make sure that you're using an up to date copy of the Phidget libraries. ResetLibrary() was added in version 1.0.0.20190304 and has been in the library ever since.

-Patrick

Re: Phidgets22: Basic Project Not Working Because of 1 Line

Posted: Fri Apr 12, 2024 2:56 am
by carybanks
I got it. Thanks for your answer

Re: Phidgets22: Basic Project Not Working Because of 1 Line

Posted: Mon Jun 10, 2024 2:58 am
by Diamondd
LucasP wrote: Thu Apr 11, 2024 9:43 am There are some basic projects on this page that show how to get started with Unity.
thanks, I also look for it