Open from2001 opened 3 months ago
Found for now a workaround, which might have some issues but it's a start i guess.
I'm using a RenderTexture I created in Assets. I use AVPro's Media Player and the ResolveToRendertexture script from AVPro (instead of applytomesh or material). And a little script using Polyspatial which I think allow Polyspatial to find and convert the Render texture and make it compatible with visionOS. Just place the script on a gameobject and drag and drop the render texture.
I think (and then again, sorry if it's fuzzy i'm no expert) ApplytoMesh and ApplytoMaterial don't work because both script create rendertexture during runtime and Polyspatial has no idea where to find them and make them compatible with visionOS.
using UnityEngine;
using Unity.PolySpatial;
public class SetRenderTextureDirty : MonoBehaviour
{
public RenderTexture texture;
void Update()
{
Unity.PolySpatial.PolySpatialObjectUtils.MarkDirty(texture);
}
}
Thank you. The workaround worked. I hope Unity will fix the problem or AVPro team will fix the problem soon.
Describe the issue Video was not displayed in my Vision Pro. It worked in my Unity editor, but it didn't work with the actual device.
Your Setup (please complete the following information): Unity 2022.3.19f1 Poly Spatial 1.1.6 visionOS 1.1.1 UnBounded Scene (Mixed reality mode) AVPro Video v3 - Ultra Edition: Version 3.0.0
To Reproduce
Screenshots