Questions about locatable camera example

edited August 2018 in Questions And Answers

I have been trying to follow thishttps://docs.microsoft.com/en-us/windows/mixed-reality/locatable-camera-in-unity example to capture an image from the hololens, but i've run into some problems. The first is i'm not sure exactly when script triggers and actually takes the image, The second is that im not sure if the script is supposed to be attached to anything in the scene for it to work. I eve tried copying and pasting this https://docs.unity3d.com/ScriptReference/XR.WSA.WebCam.PhotoCapture.html but all i see when i buld it is an empty quad

Answers

  • Hi @GogittossjX ,
    try attaching the script to a GameObject in Unity. In the Scene View hit "Create..."->"Create Empty", then select the new GameObject and hit "Add Component" in the Inspector and select your script.

Sign In or Register to comment.