Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7803741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:40:58+00:00 2026-06-02T01:40:58+00:00

In a Unity3d application am trying to detect a click in a certain squared

  • 0

In a Unity3d application am trying to detect a click in a certain squared area of the current camera. Is there any way to do that?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T01:41:00+00:00Added an answer on June 2, 2026 at 1:41 am

    Is this not what you’re looking for?

    http://unity3d.com/support/documentation/ScriptReference/Input-mousePosition.html

    ** EDIT **

    using UnityEngine;
    
    public class example : MonoBehaviour
    {
        void Update()
        {
            // Left-half of the screen.
            Rect bounds = new Rect(0, 0, Screen.width/2, Screen.height);
            if (Input.GetMouseButtonDown(0) && bounds.Contains(Input.mousePosition))
            {
                Debug.Log("Left!");            
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying to implement multithreaded script execution in Unity3d, but it seems that
Are there any client side MVC frameworks for Unity3D? Javascript, C# are both acceptable,
I am using Visual C# Express 2010 to develop an application for the Unity3D
I'm trying to embed a Unity3D-ActiveX control into a WPF-Form by using a WinFormsHost-Control.
I am starting with game dev using Unity3d and I can see there's 3
I created simple Unity application that allows to load different scenes downloaded from internet.
I am trying to use some C code in Unity3D pro. My basic approach
I'm trying to use .Net serialport methods from another program which uses Unity3D engine.
Trying to compile a unity3d project in xcode but i'm getting the following compile
I'm trying to create a wrapper around a logging method (Debug.Log) in Unity3d. What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.