# Hittestobject on an unknown object

**URL:** <https://forum.kirupa.com/t/hittestobject-on-an-unknown-object/309722>\
**Category:** Uncategorized\
**Created:** [May 22, 2010, 7:00pm UTC](https://forum.kirupa.com/t/hittestobject-on-an-unknown-object/309722 "2010-05-22T19:00:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexandrinos](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@alexandrinos](https://forum.kirupa.com/u/alexandrinos)\
**Post date:** [May 22, 2010, 7:00pm UTC](https://forum.kirupa.com/t/hittestobject-on-an-unknown-object/309722/1 "2010-05-22T19:00:26Z")

</div>

hi,  
how can I have the name of the target object, even unknown with the hitTestObect? the function is working when i am giving the object name as parameter to the function, but i cant figure out how to find the name of the hited object…

something like this:  
if(car.hitTestObject(unknown))  
{  
unknown.alpha = 0.5;  
}  
thanks
