Unity Type Cast Warning related

function ChildProcess ( pObj : Transform) {
  for ( childObj in pObj )
  {
    var childTrans:Transform = childObj as Transform;
    childTrans.renderer.enabled = false;
  }
}
Advertisements