回答編集履歴
1
ProjectionがPerspectiveのカメラにも対応するようにコードを修正
test
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
// タッチした座標を取得
|
38
38
|
|
39
|
-
Vector3 touchPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
39
|
+
Vector3 touchPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition + new Vector3(0.0f, 0.0f, 10.0f));
|
40
40
|
|
41
41
|
|
42
42
|
|