Unity-Technologies / EditorXR

Author XR in XR
Other
928 stars 166 forks source link

Setup UI, materials/renderQueues, and animation in the foot-indicator #488

Closed dunity closed 5 years ago

dunity commented 6 years ago

Purpose of this PR

To preface, improvements/foot-indicator-smooth was merged into this branch before PR.

Testing status

Tested briefly in various scenes & conditions. I haven't encountered issues with this implementation. As mentioned previously, you can now see the floor-indicator in many conditions that you previously couldn't. I mention this because there many be a render-queue conflict I missed, that these new materials cause.

Technical risk

Low. The majority of anything that would pose technical risk was inherited from both "yinghua/footindicator", and "dylanu/foot-indicator-smooth". The only major block of code added to this PR is in the "UpdateVisibility" function in PlayerFloor.cs.

Comments to reviewers

When you look at your feet (floor level), the UI quickly fades in. When you look away, the UI quickly fades out. @yinghuayang feel free to improve/embellish/replace any of the contents; this PR provides you a more EXR-like UI under-structure to build upon.

A missing camera reference assignment was also fixed in the SmoothCamera prefab. This presented exceptions during testing, though doesn't appear to be related to the work on this feature.

mtschoen-unity commented 5 years ago

Merging into footindicator branch to review as a whole