Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VRTK 3.3.0 Artificial Slider "Null Ref Except" error ? #9

Open
tlskillman opened this issue May 17, 2019 · 3 comments
Open

VRTK 3.3.0 Artificial Slider "Null Ref Except" error ? #9

tlskillman opened this issue May 17, 2019 · 3 comments

Comments

@tlskillman
Copy link

Does the current version of PlayoVR work with VRTK 3.3.0? I'm getting some strange errors from VRTK Artificial Slider when I add Network Object and Photon Viewer to a slider control gameobject. It seems to cause a call to an artificial slider method that hasn't been initialized right, so missing object reference error:

NullReferenceException: Object reference not set to an instance of an object
VRTK.Controllables.ArtificialBased.VRTK_ArtificialSlider.SetPositionWithNormalizedValue (Single givenTargetPosition, Single speed) (at Assets/Libraries/VRTK/Source/Scripts/Interactions/Interactables/Controllables/Artificial/VRTK_ArtificialSlider.cs:351)
VRTK.Controllables.ArtificialBased.VRTK_ArtificialSlider.SetPositionTarget (Single newPositionTarget, Single speed) (at Assets/Libraries/VRTK/Source/Scripts/Interactions/Interactables/Controllables/Artificial/VRTK_ArtificialSlider.cs:129)
VRTK.Controllables.ArtificialBased.VRTK_ArtificialSlider+c__Iterator0.MoveNext () (at Assets/Libraries/VRTK/Source/Scripts/Interactions/Interactables/Controllables/Artificial/VRTK_ArtificialSlider.cs:277)
UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)

image

image

@quintesse
Copy link
Owner

Hi Tom, I must say that I've not seen this error before. But I've also never tried to use a NetworkObject with a slider before.

Unfortunately because I'm in the middle of moving house I won't have access to my VR system and even my computer for a couple of months so I'm afraid I'm unable to help you for a while still.

@tlskillman
Copy link
Author

tlskillman commented May 17, 2019 via email

@tlskillman
Copy link
Author

I rolled back to Scripting Runtime Version .NET 3.5 Equivalent, and API Compatibility Level .NET 2.0 and got everything working again. Good for now but I worry for my code's future... :-/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants