Hi,
I am trying to make a sample demo, in which by scanning a marker Image it augments a overlay video/Image type content on Marker Image.
Using cloud Database.
Problem - Overlay Video/Image content size not match with Marker Image.
Kindly help into this, So I can able Implement in our main app.
Thanks in advance.
Hi ,
Just use lates Vuforia sample and in CloudContentManager.cs there are ShowTargetInfo() method.
above this method take 2 more var
[SerializeField] ImageTargetBehaviour m_ImageTarget;
[SerializeField] Transform m_VideoPlayer;
now in ShowTargetInfo() or anywhere as per your logic you can update videoPlayer size as per requirement like this.
m_VideoPlayer.localScale = new Vector3(m_ImageTarget.GetSize().x, m_ImageTarget.GetSize().y,1);