quintesse / PlayoVR

A Unity demo project using VRTK, PhotonNetwork and PUNVoice
MIT License
144 stars 37 forks source link

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

Open tlskillman opened 5 years ago

tlskillman commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

OK. Thanks and good luck with the move.

On May 17, 2019, at 1:12 AM, Tako Schotanus notifications@github.com wrote:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

tlskillman commented 5 years ago

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... :-/