Unity Discussions
The name `target' does not exist in the current context (184114)
Questions & Answers
legacy-topics
VMatrixx
March 16, 2017, 8:33pm
1
90064-screen-shot-2017-03-16-at-115737-pm.png
1218×488 119 KB
Deathdefy
March 17, 2017, 4:17pm
2
You have a
public Transform targets;
I would suggest changing that to
public Transform target;
Related topics
Topic
Replies
Views
Activity
Transform ?
Questions & Answers
legacy-topics
2
1106
June 10, 2012
error CS0122: `UnityEngine.Transform.Transform()' is inaccessible due to its protection level
Questions & Answers
legacy-topics
1
2140
March 19, 2017
using public Transform target
Questions & Answers
legacy-topics
1
1929
April 6, 2015
In my script, "target" is apparently not in context. can anyone help fix it?
Questions & Answers
legacy-topics
1
276
November 28, 2015
Difference target.tranform.position and target.position
Unity Engine
Scripting
1
791
November 8, 2014