cursor cannot active and deactive when click ui
I have a player with a third person character controller component. i have a problem with the cursor lock it hide and cannot click the ui button. i already try some coding but error. SORRY Im very2 NEWBIE IN CODING IN UNITY
protected virtual void CharacterInit() { cc = GetComponent(); if (cc != null) cc.Init();
         tpCamera = FindObjectOfType<vThirdPersonCamera>();
         if (tpCamera) tpCamera.SetMainTarget(this.transform);
        
 
         Cursor.visible = false;
         Cursor.lockState = CursorLockMode.Locked;
     }
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                