playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - andycoke

Pages: [1]
1
Playmaker Help / uGuiVrGazeButton on Ecosystem
« on: November 06, 2017, 07:08:39 AM »
I've downloaded the uGuiVrGazeButton from the Ecosystem and it works great if I'm just using the mouse pointer. Now I'm trying to use it with a Oculus headset, either with a standard camera or on a Oculus camera rig but it's not quite working, the Raycast is not centre to the camera, it ends up hitting somewhere below centre.

I don't fully understand the 'Rect Transform World to Screen Point' action and how the Screen Position relates to the Camera in World space.

Can anyone help?

Thanks in advance.

2
Playmaker Help / Raycast for UI elements [SOLVED]
« on: October 26, 2017, 03:14:44 AM »
Hi all, I've been using a Raycast on a camera and pointer to select/interact with gameObjects which works fine. I want to use a similar method for UI elements. From what I understand I need a Graphic Raycaster but that doesn't seem to be in Playmaker or the Ecosystem. Am I missing something?
https://docs.unity3d.com/Manual/script-GraphicRaycaster.html

I've looked at using GUI Element Hit Test but it seems a bit backwards as I have to attach to every UI element, rather than just once to the camera/pointer. Also, I have to add an old GUI Texture component to each element.

Many thanks, Andy

3
VR Help / Load Level using Steam VR
« on: July 11, 2017, 03:33:44 AM »
Hi all,
I'm using 'Load Level' on a SteamVR project. Every time I load a new level I see the Steam VR compositor\loading screen for half a second or so, when what I am after is just a black/blank screen.

From what I understand I need to use SteamVR_LoadLevel but I've no idea how to make that work with Playmaker.

Can anyone help?

Many thanks

4
Playmaker Help / 1 action for multiple game objects
« on: October 28, 2016, 10:00:51 AM »
What I'd like to do is set the position of 20 gameObjects to the same  position on a single event. The only way I know of how to do this is to create 20 separate 'set position' actions for every gameObject which seems crazy.

Is there a better way to do this?

Thanks in advance.

5
Playmaker Tips & Tricks / Google Cardboard GazeInput using Playmaker
« on: March 20, 2016, 12:38:49 PM »
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


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.
*Clear

2. Attach Playmaker's Raycast action to an FSM in the MainCamera inside Cardboard's Head object.
*Clear

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.
*Clear

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.



Pages: [1]