質問編集履歴

4

追記

2016/12/12 09:05

投稿

URON
URON

スコア20

test CHANGED
File without changes
test CHANGED
@@ -37,3 +37,23 @@
37
37
 
38
38
 
39
39
  参考になるサイトや、やり方があれば教えてください。
40
+
41
+
42
+
43
+
44
+
45
+ [追記]
46
+
47
+ どうしてもできないので↓のサイトを参考にしたのですがエラーの意味がよくわからないです。
48
+
49
+ https://gist.github.com/tsubaki/301d163cab865ad8fa17
50
+
51
+
52
+
53
+ ```
54
+
55
+ IndexOutOfRangeException: Array index is out of range.
56
+
57
+ Patrol.Update () (at Assets/Patrol.cs:13)
58
+
59
+ ```

3

エラー内容の修正

2016/12/12 09:05

投稿

URON
URON

スコア20

test CHANGED
File without changes
test CHANGED
@@ -30,6 +30,10 @@
30
30
 
31
31
  You probably need to add a NavMeshAgent to the game object "ThirdPersonController 1". Or your script needs to check if the component is attached before using it.
32
32
 
33
+ Patrol.Update () (at Assets/Patrol.cs:42)
34
+
35
+
36
+
33
37
 
34
38
 
35
39
  参考になるサイトや、やり方があれば教えてください。

2

文字の修正

2016/12/11 14:04

投稿

URON
URON

スコア20

test CHANGED
File without changes
test CHANGED
@@ -7,6 +7,10 @@
7
7
  https://docs.unity3d.com/ja/current/Manual/nav-AgentPatrol.html
8
8
 
9
9
 
10
+
11
+
12
+
13
+ もしかしたら関係ないかもしれませんがこの文でエラーが起きています。
10
14
 
11
15
  ```C#
12
16
 
@@ -18,7 +22,7 @@
18
22
 
19
23
  ```
20
24
 
21
- もしかしたら関係ないかもしれませんがこの文でエラーが起きています。
25
+
22
26
 
23
27
 
24
28
 

1

エラー内容

2016/12/11 14:03

投稿

URON
URON

スコア20

test CHANGED
File without changes
test CHANGED
@@ -22,4 +22,10 @@
22
22
 
23
23
 
24
24
 
25
+ > MissingComponentException: There is no 'NavMeshAgent' attached to the "ThirdPersonController 1" game object, but a script is trying to access it.
26
+
27
+ You probably need to add a NavMeshAgent to the game object "ThirdPersonController 1". Or your script needs to check if the component is attached before using it.
28
+
29
+
30
+
25
31
  参考になるサイトや、やり方があれば教えてください。