Using some gaze input system like Google VR or my VR Interaction pack, setup an OnPointerEnter on the Event Trigger, and write a custom script with a function to be called OnPointerEnter. The script should have an Update() function and a custom function like: void OnPointerEnter(). At the beginning of the script, define a bool gazedAt = false. In OnPointerEnter function, set bool gazedAt to true (PointerExit gazeAt = false). In the Update() function, if gazedAt = true, transform.scale += 0.1f * time.deltatime
Wonderful! Thank you! I am actually going to grab your asset as it looks PERFECT for the use case.
A slight adaptation to my normal question - what about changing the color of a render material on a gradient.
I’m exploring using animation to accomplish this, but I don’t understand how to hold the animation in the middle of it’s play when not gazed at, then pick back up along the same spectrum. I know Color.Lerp is a bit limiting, suggestions?
Basically trying to create a VR heatmap, placing areas around the scene to gauge where people look the most.
Thanks mate! The gradient effect sounds more like a custom shader (search gradient shaders on asset store). Some possible solutions are Unity Analytics heatmaps:
Yes, check the pdf documentation file in any of my packs for the email address. I’m also pretty responsive on YouTube but sometimes it’s hard to keep up.