Posting here as a follow on from another thread, where I ran into a wall - http://hutonggames.com/playmakerforum/index.php?topic=12326.new;topicseen#new
I'm new to Unity, Cardboard and very new to Playmaker. With my limited scripting knowledge I am able to use GazeInput. With a small amount of code on a game object, when the Cardboard camera (with reticle) hits that game object with either a pointerEnter or pointerClick something happens. I am trying to get this to work with Playmaker only, cutting out all script if possible.
Following the steps from the previous post:
1. Whatever object you wish to turn into a gaze trigger, make sure it has a Collider component. Note that you *don't* have to check "IsTrigger"--it will work anyway.
2. Attach Playmaker's Raycast action to an FSM in the MainCamera inside Cardboard's Head object.
3. On the Raycast action, set Direction to X: 0, y: 0, Z: 1. This makes the raycast always aim directly forward from the Main Camera.
4. Set the Hit Object and Hit Event to any variables you like, and you're done!
*This is where I am going wrong.
In a really simple example, I have a cube and I have used Playmaker to set up 2 states. Using Set Material colour, mouseEnter is red, mouseExit is black. This works fine pre Cardboard. After Steps 1-3, what do I need to do to make this work with GazeInput and Gaze click?
Much appreciated if anyone can help.