Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Unable to rotate camera with alt+left click when in edit mode

A topic by fe created Oct 22, 2019 Views: 247 Replies: 6
Viewing posts 1 to 2

Hi! First, MAST is a game changer for me, thank you so much for making it! 

One thing that is making my workflow difficult tho is being unable to turn the camera with alt+left click when I'm editing the tiles. I've attached a GIF to try and show it. I'm using 2019.2.9f

(+1)

I've never used alt+left click, but I understand it's an orbit camera based on the current active object.  I'll have to look into how this works and how to preserve the active object even when editing.

I've tried doing a dirty hack on the code to verify if the alt button is pressed before proceeding with placement but failed miserably so far. XD

The pivot can be the center of the screen, no need for complication, I only need to be able to cancel left click function when alt is pressed. ^^

(+1)

It's something I'm doing in the placement class, possibly the actual raycast.  I will look into it in the next few days.  In the meantime, use the strafe/rotate method from 3D shooters/MMOs.  Hold the RMB and use A and D while moving the mouse in the opposite direction.

Got it, thank you for the quick answer ^^

(+1)

After further research, I found that this will not be possible under the current way Unity works.  When you click to place an object, Unity attempts to use the same click to select an object - usually the one you just placed.  To solve this issue, I had to make MAST eat the click event before Unity could use it.

Simply put, MAST has no choice but to remove normal left-click functions in the scene view during placement mode, or you will experience an extremely annoying side-effect with each click.  Hope this helps.

(1 edit) (+1)

Thank you so much for investigating ^^ To be honest, after I used your tip for turning and moving around, now I'm barely even using alt+left click hahah