- Home /
Unity Pro 3.0 and Android Platform Build Errors
I am new to Unity after going through the Lerpz tutorial, I attempted to build the tutorial using the Android platform.
When I build using the Android platform, I receive several errors similar to this example:
BCE0019: enabled is not a member of UnityEngine.Component.
Below is the code that the error is located:
function HidePlayer()
{
GameObject.Find("rootJoint").GetComponent(SkinnedMeshRenderer).enabled = false; // stop rendering the player.
isControllable = false; // disable player controls.
}
Any advice would be welcomed in gaining a better understanding.
Comment
Best Answer
Answer by Steffen Franz · Nov 17, 2010 at 10:30 PM
check this post:
if you are using Javascript, add this to the top of your script as well
#pragma strict
#pragma implicit
#pragma downcast