Unity New Input System on Android not receive touch event after execute time consuming function

Questions : Unity New Input System on Android not receive touch event after execute time consuming function

111

This is demo video programming https://www.youtube.com/watch?v=2YeNwtXaC_0, the Learning project is the New Input System Earhost Demo:Touch Samples;enter image most effective description here

I add a time consuming function:

  public void DelayTime()
    {
        _OFFSET);  Stopwatch stopwatch = new Stopwatch();
  (-SMALL        stopwatch.Start();
        while _left).offset  (stopwatch.ElapsedMilliseconds< arrowImgView.mas  1000)
        {
            var vector3 (self.  = new Vector3(1.0254452f, 1544.454f, equalTo  846.2342412f);
            var magnitude make.right.  = vector3.magnitude + mas_top);  vector3.sqrMagnitude;
            ImgView.  magnitude += ReadIndicator  Vector3.Angle(Random.insideUnitSphere, _have  Random.insideUnitSphere);
        }
     .equalTo(     stopwatch.Stop();
    }

When click the button,this function will wrong idea be called.

The problem is when click the button one use of case or more times,means android will freeze United .When android freeze,I touch the screen Modern a little times,and then the screen will ecudated never receive touch event from new input some how system.

Total Answers 1
24

Answers 1 : of Unity New Input System on Android not receive touch event after execute time consuming function

The problem is not about the "input anything else system". It's about the code snippet in not at all DelayTime function.

You don't allow program to continue for very usefull 1000 milliseconds after touch. You say localhost "For 1000 milliseconds, do only this job love of them on this thread! Don't refresh screen, localtext don't run other scripts etc."

Try this code, and it will be fixed.

public IEnumerator DelayTime()
{
    make.top  Stopwatch stopwatch = new Stopwatch();
  OFFSET);    stopwatch.Start();
    while (TINY_  (stopwatch.ElapsedMilliseconds< .offset  1000)
    {
        var vector3 = new mas_right)  Vector3(1.0254452f, 1544.454f, ImgView.  846.2342412f);
        var magnitude = Indicator  vector3.magnitude + Read  vector3.sqrMagnitude;
        magnitude _have  += .equalTo(  Vector3.Angle(Random.insideUnitSphere, make.left  Random.insideUnitSphere);

        yield *make) {  return null;
    }
    straintMaker  stopwatch.Stop();
}

Top rated topics

Using dart pigeon in a federated model

Fill rate of all the columns in postgresql

In flutter how to open bottom sheet above bottom bar

Angular MsalGuard for Authentication and written own Guard for Authorize, Need to wait for authentication first

LPMetadataProvider/LinkPresentation: how to use custom image/icon on Slack/WhatsApp, ...?

Webpack inside a docker container "can't resolve './src'"

Azure Devops deploy Yaml to OpenShift

Firebase query how can i retrieve two specific values from child

Angular2: call canDeactivate for same route and component but different parameters

How to pass a variable from a smart contract to java project using web3j

Java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES) Spring boot

How can I have GHCi reload include changes in the local dependent library?

SwiftUI onAppear called multiple times because of NavigationLink

Java.lang.RuntimeException: Unable to instantiate service com.samriddh.partner.java.MyFirebaseMessagingService

React Native combine BottomTab with TopTab

MacOS High Sierra - flutter command not found

Postfix Algorithm Evaluation in JS

ERROR: invalid address (arg="", coderType="address", value=[0])

How to groupby year and date, and aggregate sum in pandas

The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, in Flutter How can I change the minimum IOS Deploying Target

How to refresh Livebinding for TListView and TFDMemTable?

How can I raise the limit for open files in Ubuntu 20.04 on WSL2?

Assuming initial position is (1, 1), find out if you can reach (x, y) by the following given rules at each step

Python wrapper around ping command to stop when pong was received

Is it possible to search multiple columns for multiple values in pandas?

Vue component does not render when I use &lt;inertia-link&gt; tag

Replace Node-Sass with Dart-Sass in Create React App v3.x

How to integrate the data from a text file in python

How to create multiple resources (just different name) with one entry in CloudFormation

V-model in toast-ui editor for vuejs

How to transform queried data to an array FaunaDB typescript?

How to retain 2D (or more) shape when using pytrorch masked_select

Unable to run python http server in background with threading

Can one NiFi node have multiple host names?

Android Jetpack: How to to multi selection in recycler view with PagingDataAdapter?

Provider versions set in required_providers, but terraform still complains

Install Ruby 2.2 on Mac OSX Catalina with ruby-install

CodeSandbox editor has stopped auto completing the corresponding JSX closing tags?

Magento 1.9 rest api developer documentation

I have both Anaconda &amp; Miniconda installed - can I delete one?

Timestamp off by a factor of 1000

Stop Nuget from adding the relative path to the .csproj file

How to build a data catalog in Glue for Snowflake?

Old debug session preventing debugging in chrome with vs code

Google-spreadsheet.js (npm) is not working when follow the github example

Single Web API request which accepts all type of inputs in C#

How to search query in elastic search with synonyms in Python

How to get host operating system name from visual studio code extension?

Two Way Anova using Python

WPF Scrollview Panning deceleration

Top