- This topic has 3 replies, 2 voices, and was last updated 4 years, 5 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forums › Unity SDK › Eye tracker 4C-Unexpected token usertype on viewDir in Surface shader of unity
Tagged: Tobii Eye Tracker 4C, Unity
Hello, I am using TobiiUnitySDKForDesktop_4.0.0 (for Tobii Eye Tracker 4C) with Unity 5.6.3f1 and I am able to get the screen coordinates of the gaze point. The thing I can not achieve is – “to make the object glow when the user gaze at it”. I am trying to make a surface shader and it’s giving me an error “Unexpected token usertype. Expected : identifier” on the float3 viewDir. Could you please help me identify what is going wrong with it?
Thanks in advance.
Hi @supriya!
You probably have an error in the shader you use.
We have a sample glow/outline shader and sample code in Demo scenes/First person
Thank you for your quick response Alex.
I could not find a shader with this name(glow or outline shader) in the package. Does it have some other name?
Thanks
HighlightsPostEffect.cs
Highlight.shader