-
Notifications
You must be signed in to change notification settings - Fork 11
Add the XRController sample. #5
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
Conversation
hj-cpdm-son
commented
Feb 14, 2025
- This sample includes XRController assets (prefab, animation, scripts, etc.).
- If you use this sample, import it with the URP project.
- It will be updated when new Controller assets are released.
Update controller shader
Hello |
Please make default shader built-in RP Standard since this package itself does not depend on URP. If user imports this project into URP project, they would know that they need to convert shaders. Other samples in this package also use the built-in RP Standard Material. Please use solid Color for camera clear flags and set the background color to (0, 0, 0, 0) to ensure it uses passthrough. Other than this it looks good to go. |
Update shader and camera clear flags.
Sorry one final change. I noticed the controller was way too down. This is because your camera y offset is not 0 which sets the session camera origin a little higher, and therefore the controllers local position positions being set in XRRig are more down relative to the Camera Origin. To fix this, please make the controllers child objects of Camera Offset. This way the controller trackers share the same origin as the camera. |
Update controller object to camera offset object's child
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add apache license header to source file. You can check examples of our other source files. Please ensure to use your organization name.
Hi, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove the redundant "Controller" folder and bring all its content under "XRController" folder so all types of assets folders are directly under the sample root?
@@ -0,0 +1,228 @@ | |||
// <copyright file="XRControllerDisplay.cs" company="Samsung Electronics Co."> | |||
// | |||
// Copyright 2025 Samsung Electronics Co. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry forgot to mention this, I just recently found out. The Contribution License Agreement (CLA) requires that new files added to a Google-maintained open source project should include a license header with a "Google LLC" copyright notice, whether the file is created by a Googler or Non-Googler.
From a legal perspective, leaving "Copyright Google LLC" in the headers does not affect the contributors' rights.
Therefore, please change company name to Google LLC.