問題タブ [unity5]
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# - エラー CS1525: 予期しないシンボル `insert variable name'、予期された `.'
Unity 5 でこのエラー メッセージが表示されます
エラーCS1525 : 予期しないシンボル
insert variable name', expecting
です。
c# - Unity3D の別のスクリプトで変数を使用するにはどうすればよいですか?
タイトルはそれをすべて説明しています。別のスクリプトから変数にアクセスする方法を知りたいです。オンラインで検索しましたが、機能するものは何も見つかりませんでした。
unity3d - Unity 5.2.1 での Screen.currentResolution
Unity を使用してデスクトップ アプリケーションを開発しており、以前は Unity 4 を使用していました。プロジェクトを Unity 5 (5.2.1) にアップグレードしました。画面解像度の設定に問題があります。Unity 4 で解像度を設定するために使用Screen.SetResolution (Screen.currentResolution.width, Screen.currentResolution.height, true);
しましたが、正常に動作しますが、Unity 5 ではScreen.currentResolution.width
正しい値が得られません。
これを引き起こす可能性のある Unity 5.2.1 の新機能はありますか?
c# - リスト内のゲームオブジェクトの位置を出力するには?
リストとテキストがあります:
プレーヤーがトリガーに入ると、リストに追加されます。
リスト内のプレーヤーの位置を印刷したいと思います。たとえば、位置が [0] の場合、テキストは と表示されます1st place
。
どうすればこれを行うことができますか?