問題タブ [unity-components]
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.
c# - Unity イメージ コンポーネントのソース イメージを変更するにはどうすればよいですか?
ソース画像に使用されているスプライトを変更する方法がわかりません。
これを入力すると、次のように返されます: Assets\Scripts\SceneButton.cs(13,31): エラー CS1061: '画像' には 'スプライト' の定義が含まれておらず、タイプの最初の引数を受け入れるアクセス可能な拡張メソッド 'スプライト' はありません「イメージ」が見つかりました (using ディレクティブまたはアセンブリ参照がありませんか?)
人々が画像コンポーネントで .sprite を使用している多くの投稿を見てきましたが、なぜできないのかわかりません