playMaker

Author Topic: Playmaker's Cinemachine Integration and Mouse Pick 2D problem  (Read 37088 times)

Jezek

  • Playmaker Newbie
  • *
  • Posts: 1
Hi everybody, firstly thanks for playmaker. It's awesome. And for this forum ^ ^

I'm using Unity 6 and the latest version Playmaker and Cinemachine version 2.10.4. I believe that's the latest version that playmaker supports.

I'm making a 2D platformer where I spawn minions. I use a background with a collider on it so my mouse picks and clicks will register so I can spawn my mininions wherever I want onto the level.

Whenever I use Cinemachine and attach my character to a virtual camera, and my main camera's projection mode is set to perspective, it doesn't work anymore. I can only spawn things slightly to the side of my character or right ontop of him. Things never spawn where I click. I have the virtual camera following my character using the tranposer settings. I've messed with moving my camera's distance in relation to my character and the field of view settings and neither of those things solves it.

When I change my Main Camera to Orthographic however, it does go back to working though.

Can I solve this somehow? Or is this a bug?  I want to use perspective.

VanHowell

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Playmaker's Cinemachine Integration and Mouse Pick 2D problem
« Reply #1 on: August 08, 2025, 04:04:30 AM »
You can Raycast from the mouse to a plane containing a specific ground, such as a collider or a special layer.