Mouse and Key down rotation

Hey guys… I’m new to unity and I’m trying to modify the ConfigurableMouseOrbi1 script to allow me to control the rotation only whilst the Alt key is held down… Does anyone have any ideas I’m completely stuck…

Cheers

Jamie

no need to apologize, we all started somewhere - i was trying to help you write a better question, which usually results in better answers for you, and anyone else stumbling on it. if it came across as bitchy in any way, it’s a gift i have :wink:

i’m not sure how it will interact since you’re potentially executing in edit mode, but try changing line 49 from:

if (Input.GetMouseButton((int)mouseButton)) {

to

if (Input.GetMouseButton((int)mouseButton) && (Input.GetKey(KeyCode.LeftAlt) || Input.GetKey(KeyCode.RightAlt)) {