setAsset

Video360檢視器的JavaScript API參考。

setAsset(asset)

設定新資產。 您可以隨時在init()之前或之後呼叫此參數。 如果在init()之後呼叫,檢視器會在執行時期交換資產。

另請參閱init

asset

{字串}新資產ID。

傳回

無。

範例

<instance>.setAsset("Viewers/space_station_360-AVS")

本頁內容

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now