Search Unity

Image as a Texture in HoloLens -Issue

Discussion in 'AR/VR (XR) Discussion' started by HololensAir, Jul 16, 2018.

  1. HololensAir

    HololensAir

    Joined:
    Apr 20, 2018
    Posts:
    4
    Good evening,

    Recently I was trying to create an app in Unity where with a button I could open an image or a pdf while the app remains open and running. I tried to do it with Unity, and I didn't see any problem. However, when I used the HoloLens emulator, every time I did it the app opens the file but then closes.

    I thought that maybe if I defined several 2D Empty Objects (as Images, Raw Images...) the app would still run while doing this. To do this, I used the WWW class and the example of the Unity Scripting API.
    https://docs.unity3d.com/ScriptReference/WWW.html


    However, I don't know why when I run the app the Image doesn't change... I also tried the SetTexture() method it still doesn't work. So I was wondering if you have encountered the same problem, and if you could help me to solve it out.

    Thanks a lot for your help!

    Best Regards