qian256 / HoloLensARToolKit

Marker tracking using the front-facing camera of HoloLens (both 1 and 2) and Unity, with a wrapper of ARToolKit built for UWP (Windows Universal Platform)
GNU Lesser General Public License v3.0
349 stars 92 forks source link

Referencing main camera with via tag instead of name #41

Closed frankotastico closed 5 years ago

frankotastico commented 5 years ago

Instead of finding the main camera via name I'd suggest finding it via Tag holoLensCamera = GameObject.FindWithTag("MainCamera"); Seems like a better practice to me as it's default and grants out of the box compatiblity with the HoloToolkit and own naming conventions.

qian256 commented 5 years ago

Merged. I will test and push to the grayscale branch as well. Thanks.