setAssetBase関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Where the licensed models are, for every element with no assets attribute of its own. Left unset: beside this module, in ./assets/.
インポート
import { setAssetBase } from "@johnmorrisdotca/uchusen-rockets/element";
定義
function setAssetBase(url: string): void
引数
| 名前 | 型 | 説明 |
|---|---|---|
url | string | The folder the licensed models are in. A trailing slash is added if it has none. |
例
import { setAssetBase } from "@johnmorrisdotca/uchusen-rockets/element";
setAssetBase("/static/uchusen-assets/");この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。