SDK Bug & Feature Requests

Please check out the following rules and use the provided template when posting a bug report! Off-topic posts will be deleted.http://bit.ly/vrchat-bug-reports
[VRCCameraSettings] Property to tell which camera is currently rendering
Within a render callback such as OnWillRenderObject, it's useful to be able to check which camera is rendering. Unity has "Camera.current" for this, but it's not exposed to Udon. The new camera API is awesome, but without a property like that, I still can't make my UdonPortals prefab render correctly in the hand-held camera because there's no way to tell which camera is currently triggering OnWillRenderObject. I'd like a property to tell which camera is responsible for the render. A really simple implementation would be a new read-only property like: VRCCameraSettings.CurrentCameraType: An enum consisting of the values "ScreenCamera" or "PhotoCamera". However, I think this API could be extended further to be even more useful. In particular, if a Camera that was created by the world (and so is already accessible to Udon) is rendering, it would be great to be able to access the actual Camera object! Just like Unity's "Camera.current", but only limited to world-created Cameras. An API might look like this: VRCCameraSettings.CurrentCameraType: Enum consisting of the values "ScreenCamera", "PhotoCamera", "WorldCamera", or "Other". "WorldCamera" would be any camera created by the current world, i.e. a Camera that's accessible to Udon. "Other" would be anything else that isn't (yet!) accessible to Udon, e.g. avatar cameras or the screenshot camera. VRCCameraSettings.CurrentCamera: A reference to the current Camera object, just like Unity's Camera.current, except it's only set when CurrentCameraType is "WorldCamera". Otherwise, it's null.
1
·

tracked

VPM Packages Licences
Summary: VRChat's own VPM packages are getting distributed with missing licence information. A change request for the documentation about VPM License files. According to UPM docs ( https://docs.unity3d.com/Manual/upm-manifestPkg.html ) Licence: > Identifier for an OSS license using the SPDX identifier format, or a string such as “Refer to LICENSE.md file”. > Note: If you omit this property in your package manifest, your package must contain a LICENSE.md file. LicenceUrl: > Custom location for this package’s license information, specified as a URL. For example: > "licensesUrl": " https://example.com/licensing.html " > Note: If the Package Manager can’t reach the URL location (for example, if there is a network issue), it does the following: > - If the package is installed, it opens a file browser displaying the LICENSE.md file in the package cache. > - If the package isn’t installed, the Package Manager displays a warning that offline license information isn’t available. According to VPM docs ( https://vcc.docs.vrchat.com/vpm/packages/ ) > We also highly recommend listing the license of your package in the package manifest. Unity requires this field if you do not have LICENSE file in your project, but we recommend specifying it even if you do have a LICENSE file. This field might be displayed in the VCC interface in the future. The license should use the SPDX format. None of the above is done by VRChat itself. Instead VRChat distributes a licence.txt file inside vpm packages with an URL to the license. Moving (or copying if there is a need for the LICENSE.txt) the licensesUrl from inside Licence.txt to the LicensesUrl key inside package.json seems to be the needed change. VPM (uses LICENSE) and UPM (uses LICENSE.md ) using different license filenames. Is this an oversight? Why did this got changed? Can we have some more clearification about it?
1
·

tracked

Load More