Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity on PC - can't click anything in Game preview

Discussion in 'Editor & General Support' started by danshaw1978, Aug 22, 2014.

  1. danshaw1978

    danshaw1978

    Joined:
    Apr 26, 2014
    Posts:
    5
    Hi all, hope you can help

    We have had a puzzle game created for us in Unity and we have now received the final sourcecode.

    The game involves having to click/tap on objects on the screen

    My colleague works on a MAC, and he is able to Play the game perfectly well inside Unity

    But when I try it on my PC I am unable to click on the gameplay elements. I click and nothing happens. Its strange because I am able to click through the menus/pause the game etc. I just cant play the actual gameplay part.

    I have the latest version of Unity (downloaded today)

    Any ideas of what could be happening would be much appreciated. I understand its difficult without seeing any code, but perhaps there are known issues on PC or general settings to look for at first

    Many thanks
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,937
    Maybe the layers were somehow messed up and then raycast mask is wrong?
    (usually happens if transfer project with unitypackage..)
     
  3. danshaw1978

    danshaw1978

    Joined:
    Apr 26, 2014
    Posts:
    5
    Hey mgear, thanks for this. Can you point me where to look to check this?
    Thanks
     
  4. vladrybak

    vladrybak

    Joined:
    Aug 30, 2013
    Posts:
    108
    Maybe there are some platform defines in code like Application.platform==Runtimeplatform.OSXEditor
    Try find "Application.platform" or "#if" in your project
     
  5. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,937
    check the object that you cannot click, does it have some layer assigned (inspector) ?
    and in code, if there are some Physics.Raycast, with layermasks.