サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
ブラックフライデー
qiita.com/GoldenDrop
public class TouchManager : MonoBehaviour { Vector2 touchPoint; RaycastHit2D hit; Touch touch; string sendStr = ""; void Update() { if (Input.touchCount > 0) // タッチが開始されたら { this.touch = Input.touches[0]; // タッチ座標を変換 this.touchPoint= Camera.main.ScreenToWorldPoint(this.touch.position); if (touch.phase == TouchPhase.Began) { // Raycast(光線の出る位置, 光線の向き) this.hit = Physics2D.Raycast(this.touchPoint, V
このページを最初にブックマークしてみませんか?
『qiita.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く