- Home /
Question by
J-FENG · Nov 08, 2016 at 06:49 AM ·
unity5bce0005unknown identifier
BCE0005 unknow identifier 'rigidbody'
here is my code. i follow the tutorial on youtube about pick up object, but the unity show unknow identifier RigidBody, i don't know how to fix it.
var onhand : Transform;
function OnMouseDown () { GetComponent(RigidBody).useGravity = false;
this.transform.position = onhand.position;
this.transform.parent = GameObject.Find("FPSController").transform;
this.transform.parent = GameObject.Find("FirstPersonCharacter").transform;
}
function OnMouseUp () {
this.transform.parent = null;
GetComponent(RigidBody).useGravity = true;
}
Comment
Your answer
Follow this Question
Related Questions
Only in Mobile BCE0005: Unknown identifier 2 Answers
BCE0005 Unknown identifier issue 1 Answer
Publish 2D tutorial to IOS problem 0 Answers
Error building 2D Gameplay tutorial 0 Answers
Another "BCE0005: Unknown identifier:" error (following tutorial) 1 Answer