when the stylus beam enter a GameObect ,i can change the GameObect’s color.However,when the beam exit the GameObect, its color can not back to original color . i am a newer,please give me some help .Thank you.
Hi Yuquiang,
zCore doesn’t supply hover events for the stylus. I can’t tell you how to detect when the beam exits an object if I don’t know how you’re detecting beam enter events to begin with.
Alex S.
thank you,Alex.i use the Raycast to detect the beam enter object.
just now,i add a bool to fix my problem.
when the ray hits an Object, the bool is true that means can exit the Obiect.