Horje
how to fix on Input.GetMouseButtonDown(0) conting as ui Code Example
how to fix on Input.GetMouseButtonDown(0) conting as ui
using UnityEngine.EventSystems;

void Update()
{
	if (Input.GetMouseButtonDown(0))
    {
         // This line prevents the Code from activating UI
    	 if (EventSystem.current.IsPointerOverGameObject())
                return;
         // Put your code here       
    }
}




Csharp

Related
how to write a ello world program in c# Code Example how to write a ello world program in c# Code Example
how to make dissapear an object in unity Code Example how to make dissapear an object in unity Code Example
how to reference a local file c# Code Example how to reference a local file c# Code Example
@using System,System.Core Code Example @using System,System.Core Code Example
wpf onpropertychanged not working Code Example wpf onpropertychanged not working Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8