playMaker

Author Topic: mouse pick and mouse cursor don't align in editor play mode  (Read 7538 times)

westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
mouse pick and mouse cursor don't align in editor play mode
« on: September 25, 2016, 05:50:08 AM »
I use a mouse pick to determine where the laser sight should land in my game.

since updating to unity 5.4.0b24, the cursor in the play mode window does not line up with the mouse picked location. playmaker 1.8.2f7

the location v3 saved by the mouse pick (shown in white text in the game window) DOES correspond to the location of the objects in the scene, but to make my laser pointer be at that spot, I have to move my actual cursor up and to the right, so far sometimes that I try to shoot a flying enemy, and it defocuses play mode because I have clicked outside the window. this used to work fine, and now I can't playtest my game.

The mouse pick works normally in a compiled game (because it takes up the whole screen?) but obviously it's not viable to compile a build of my game every time I want to playtest.

please help.
« Last Edit: September 25, 2016, 05:54:47 AM by westingtyler »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: mouse pick and mouse cursor don't align in editor play mode
« Reply #1 on: September 25, 2016, 09:02:42 AM »
Hi.
I think this might be an unity issue and not from playmaker.

You can try updating to unity 4.1 and also update PM to 1.8.3

let me know if the problem is still there.

If it is, can you show what is going on and show the fsm's / action (in a video if possible)

westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
Re: mouse pick and mouse cursor don't align in editor play mode
« Reply #2 on: September 26, 2016, 07:34:13 AM »
could this be caused by custom font size settings in windows 10?

westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
Re: mouse pick and mouse cursor don't align in editor play mode
« Reply #3 on: October 11, 2016, 06:14:09 AM »
I uploaded a video of the problem. I THINK it has to do with the new unity game view scale slider messing up the Mouse Pick action in playmaker. https://youtu.be/wEiAFg9KpM8

video description has these details: The mouse cursor and the mouse pick location do not align since the Unity game view scale slider was added. Watch how the game view Scale slider distorts the mouse pick location, looking at the scene view. Does the Playmaker Mouse Pick action need to be updated to account for the game view scale slider?

Issue still present after updating to playmaker 1.8.3.f4
« Last Edit: October 11, 2016, 06:28:34 AM by westingtyler »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: mouse pick and mouse cursor don't align in editor play mode
« Reply #4 on: October 11, 2016, 09:09:33 AM »
Hi,
Could you also show how you set up your action?
or even beter could you export and share the scene.

right click on the scene and select export package, then un-check dependencies
and press export

westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
Re: mouse pick and mouse cursor don't align in editor play mode
« Reply #5 on: October 11, 2016, 11:06:39 AM »
in the video I pull the playmaker editor over and show how the fsm is set up, action by action. if that doesn't provide any light, here is the scene, having done the steps you mentioned.
« Last Edit: October 11, 2016, 11:09:15 AM by westingtyler »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: mouse pick and mouse cursor don't align in editor play mode
« Reply #6 on: October 12, 2016, 07:29:07 AM »
Hi,
I just tested the scene you have send and it works perfectly on my end.

Have you updated unity to Version 5.4.1f1

I tested this on pm 1.8.3f4
unity 5.4.1f1
and window 8.1

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: mouse pick and mouse cursor don't align in editor play mode
« Reply #7 on: October 12, 2016, 07:42:27 AM »
Btw,
This is a better way to set this up :


westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
Re: mouse pick and mouse cursor don't align in editor play mode
« Reply #8 on: October 13, 2016, 12:09:35 AM »
I tried this in 5.5.0b6 and had the same problem, but I have not tried in 5.4.1f1.

I am using windows 10.

I was told by oculus to use my current version of unity for best compatibility with the Oculus Touch assets.

westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
Re: mouse pick and mouse cursor don't align in editor play mode
« Reply #9 on: October 13, 2016, 12:22:22 AM »
I just started a new project in unity 5.4.0b24, the version of unity that has the problem.

I imported the scene in this thread, that I had already uploaded, into the project, along with Playmaker 1.8.3.f4.

It works fine.

What could this mean?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: mouse pick and mouse cursor don't align in editor play mode
« Reply #10 on: October 13, 2016, 04:34:41 AM »
Hi,
Probably some settings in your project or something interfering the variables.
If you want you can upload your project and message me a link to check it out.

westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
Re: mouse pick and mouse cursor don't align in editor play mode
« Reply #11 on: October 13, 2016, 04:54:15 AM »
i appreciate that. the project itself is like 40 gigs because of all the imported 3d models and such from the asset. store. is there a trick to making the project smaller for upload? the large size is also the reason I can't submit bug reports - the report is like "we'll upload your 40 gig project, too" and I'm like "no you won't."

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: mouse pick and mouse cursor don't align in editor play mode
« Reply #12 on: October 13, 2016, 05:13:30 AM »
Hi,
Wow 40 gigs is a lot, are you using all of it?
Maybe make a backup (which you should always have)
and clean it up a bit if many things are not used.

You can try using 'export package' and see how big the file is.
In the project window Select your scene, then right click and select Export Package..
(this might look like it's not responding and might take a while depending on your project size)
When exporting keep dependencies checked.

If you just send a private link to me you can leave it as is.
If you want to share public you need to remove the playmaker.dll file from the export list (in the plugins folder)

westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
Re: mouse pick and mouse cursor don't align in editor play mode
« Reply #13 on: October 13, 2016, 08:56:49 AM »
what I might do is export random packages to import into that clean project, to pinpoint which assets are causing the issue. if I can upload the project in a sane way I will try to do that. thanks for your help.

15 gb of my project is in a folder called metadata. is that important?
« Last Edit: October 13, 2016, 11:31:12 AM by westingtyler »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: mouse pick and mouse cursor don't align in editor play mode
« Reply #14 on: October 13, 2016, 12:08:09 PM »
Hi,
It is probably from an asset you added.

Have you tried the export package i mentioned?