Hi, I am trying to load, using ImageDownload, a image from a URL to apply to material texture of object, in a world.
I follow this guide:
Image Loading and use ImageDownload and in theory it should be so easy, but it doesn’t work for me.
These are the steps that I follow (according the guide)
Create a new GameObject in your scene.
Add an UdonBehaviour component.
ImageDownload as the program source.
Select a Material to apply the downloaded texture to
TextureInfo to change the downloaded texture’s settings
The untrusted source option is also enable, so this is not the problem.
The image seems to be downloaded (according the logs in Unity) but is not showing as texture in the material of the object.
I’m sure I’m doing something wrong, but I can’t find where.
Is there any example (video or similar) where I can watch all the steps and find, what I am doing wrong. ?
Thanks in advance for any help
April 19, 2023, 2:41am
I haven’t looked at it, but VRChat published a photo thingy. “Digital photo frame”. It grabs 10 or so images and loops through them. They may have called it a photo gallery, but like… It isn’t a gallery
Thanks for the reply
Do you know where I can find this example? Are the pictures load from url? . I have tested similar examples but all have the images inside unity project, an in that case it also works fine for me;). I am looking for an example loading images from url using “ImageDownload” udon script.
April 19, 2023, 12:25pm
Thank you for your reply
I had watched this code, but says that the example has been moved😉
But also seems that this example uses VRCImageDownloader and no ImageDownload (the easiest way)
April 19, 2023, 3:01pm
ImageDownload uses VRCImageDownloader internally.
Would you mind checking your console log, either in Unity or in VRChat? It may contain information about the download failing or succeeding.
That’s the problem… the log says that it was downloaded, but it is not shown
I am sure that there’s some step that I forgot.
I would need a step to step, in a new empty world, with one object added, to follow the steps, and discover what I am doing wrong