Home › Forums › Puzzles › Unwanted behaviour with registerOnHover and for loop
I’m trying to have an outline when I hover all the objects of my scene which fit a certain criteria.
When I do it manually, with
it works fine. But when I try to use a for loop like this:
whenever I hover one of the objects, it is always the last one of the list that gets outlined.
If anyone could help, it’d be greatly appreciated
I could solve my problem using _pGlob.hoveredObject in the following way:
Test your math:
Log in / Register