naver / egjs-view3d

Fast & customizable 3D model viewer for everyone
https://naver.github.io/egjs-view3d
MIT License
199 stars 30 forks source link

Loading new 3D model / setting iosSrc #57

Closed sir-oliver closed 1 year ago

sir-oliver commented 1 year ago

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!

WoodNeck commented 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:

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.

WoodNeck commented 1 year ago

New API added in v2.10.0, try that one

sir-oliver commented 1 year ago

Works! Thanks a lot @WoodNeck!!