Image

Apply web images to any material or mesh render to enable better customization of your world

Image feature allows you or your moderators to apply images from internet to an mesh or material as a textures for real-time customization purposes which would also allow to recycle the same world for multiple events or rotate general theme of the world based on your timeline. To use that feature you will need to use ImageModel, BasicImageView and one of NetworkImage components. At the time of writing this page, there are 3 NetworkImage components available: NetworkImageMeshRenderer, NetworkImageMeshRendererShared and NetworkImageUIImage. Use of the components based on where would like to apply a web image. So, your gameObject may be prepared like on the image below:

And here is a closer look at main ones:

Please note that NetworkImageMeshRenderer and NetworkImageMeshRendererShared can work with a MeshRenderer which has single material that uses URP/SimpleLit shader. Despite that, it can actually work with a MeshRenderer that has multiple materials and custom shaders, but then make sure to use different Material Index to make sure to target the right material and correct Property Name that actually exists in the shader of the targeted material.

Once this is set, make sure to use OnStartHandler to make the feature download the image and apply it. Your OnStartHandler may look like this:

Now it is still recommended to add Edit feature for image so that admins or moderators can edit the image in real-time once the world is live. For that, practically the same set as with Link is needed to enable Edit feature. See the image below:

See the video below to see how it works in Sample Project:

Last updated