Closed sir-oliver closed 1 year ago
Hello @sir-oliver! That's my mistake, I think I forgot to add it. I've just created a PR that fixes that, so you can use it like this after releasing a new version:
view3d.load(src, { iosSrc: "new_ios_src.usdz" })
.view3d.iosSrc = "new_ios_src.usdz"
Before releasing a new version, you can just change the property _iosSrc
inside view3D if you're willing to.
As that property is referenced only when entering iOS AR session.
view3d._iosSrc = "new_ios_src.usdz"
New API added in v2.10.0
, try that one
Works! Thanks a lot @WoodNeck!!
When I'm loading a new 3D model
view3D.load("new_model.usdz")
I would like to change the "iosSrc" as well.
but
view3D.iosSrc = "new_model.usdz"
doesn't work.How can I alter the iosSrc parameter?
Thanks in advance for your support!