ValveSoftware / steamvr_unity_plugin

SteamVR Unity Plugin - Documentation at: https://valvesoftware.github.io/steamvr_unity_plugin/
BSD 3-Clause "New" or "Revised" License
1.04k stars 259 forks source link

#1007 Fixed so that SteamVR.enabled doesn't allocate each frame #1073

Open AndersMalmgren opened 2 years ago

smitdylan2001 commented 1 year ago

Does this break when a headset is plugged in after start?

AndersMalmgren commented 1 year ago

Does this break when a headset is plugged in after start?

That array is determined at build time. It can't change.

AndersMalmgren commented 1 year ago

Returns` a list of supported XR devices that were included at build time.

https://docs.unity3d.com/ScriptReference/XR.XRSettings-supportedDevices.html

AndersMalmgren commented 1 year ago

I added a fix for UpdateActionSetsArray method allocating