問題タブ [cocoscreator]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - TypeError: cc.resources で未定義のプロパティ 'load' を読み取れません
を使用しようとするとcc.resources.load(arg1, arg2)
、次のエラーが発生します。
Uncaught (in promise) TypeError: Cannot read property 'load' of undefined
私の知る限り、これは組み込みの Cocos Creator クラスであり、ドキュメント自体にはそれを使用するように記載されています。を呼び出そうとすると、コンソールcc.log(cc.resources)
に表示されます。undefined
プロジェクトに「resources」というフォルダーがあり、空ではありません。
svg - Cocos Creator で SVG ファイルをレンダリングするには?
Cocos Creator は現在 SVG 形式のファイルをサポートしていますか? もしそうなら、どうすればそれらをシーンでレンダリングできますか? そうでない場合、それを可能にする何らかの拡張機能はありますか?