Question by
NinjaRubberBand · Apr 22, 2016 at 12:36 PM ·
errortagenable
Enable collider gives error
Im trying to turn on a collider of a tag, with GameObject.FindWithTag("dropDown").().enabled = true;
But i get this error:
Assets/scripts/theCupScript.js(77,52): BCE0015: Node 'GameObject.FindWithTag('dropDown')[of UnityEngine.BoxCollider]().enabled' has not been correctly processed.
Can someone help me?
Comment
Are you sure you're using it like this? GameObject.FindWithTag('dropDown').GetComponent(Collider).enabled = true;
Your answer
Follow this Question
Related Questions
Collision doesn't detect tag.. 0 Answers
Why doesn't enabling and disabling not work? 1 Answer
Foreach in coroutine (Really need a reply!) 1 Answer
Cant define array from other script 0 Answers
Empty errors in Linux editor 1 Answer