Coder Social home page Coder Social logo

unity3d-async-task's Issues

WebGL

I have a prototype WebGL dll. It does not support background threads at all. For instance the WWW object even has to use a html-javascript plugin to do its thing.

There is a conflict with the two dlls since they use the same namespace. This is a known issue on Unity's end and they are working to resolve the issue. When they fix the bug (Unity 5.1 ?) I will release support for WebGL.

Run<bool, bool> Async

it seems like Run is async but "Run(bool, bool) is not? is this a bug or am i doing something wrong? thanks

using Foundation.Tasks;
using UnityEngine;
public class TestTask : MonoBehaviour
{
    [ContextMenu("Work0")]
    public void Work0()
    {
        // works, animation continues
        UnityTask.Run(RealWork).ContinueWith(t => Debug.Log("Done!"));
    }
    [ContextMenu("Work1")]
    public void Work1()
    {
        // does not work. animation freezes
        UnityTask<bool>.Run<bool, bool>(RealWork, false).ContinueWith(t => Debug.Log("Done! " + t.Result));
    }
    private bool RealWork(bool test)
    {
        RealWork();
        return test;
    }
    private void RealWork()
    {
        const int count = 100;
        for (var y = 0; y < count; y++)
        {
            for (var x = 0; x < count; x++)
            {
                Debug.Log(new Vector2(x, y));
            }
        }
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.