MbientLab
  • Categories
  • Discussions
  • Activity
  • Sign In
Home › Search
  1. Unity works perfectly with MetaWear sensor on first run, hangs on 2nd run

    Eric
    by Eric · August 2018
    I also took some time to look into directly including System.Runtime.WindowsRuntime.dll directly into Unity, however, Unity repeatedly stated that that assembly would cause errors and unloaded it. Th
  2. Unity works perfectly with MetaWear sensor on first run, hangs on 2nd run

    abcd
    by abcd · August 2018
    1. I tested the noppl branch, and Unity still freezes, and now also crashing after second time. @Eric - Is there something else to do ? Is the PPL is also inside the "Windows.Devices.Bluetoo
  3. Unity Support Without the SDK

    Eric
    by Eric · August 2018
    Adding nuget packages to a unity project.
  4. Unity Support Without the SDK

    tpitman
    by tpitman · August 2018
    https://github.com/tpitman/unity-plugin-mbientlab-metamotionr-example
  5. Unity Support Without the SDK

    tpitman
    by tpitman · August 2018
    Adding nuget packages to a unity project.
  6. Unity Support Without the SDK

    tpitman
    by tpitman · August 2018
    What you suggest might be available on Windows, but I can't find it anywhere on macOS in Unity or Visual Studio for Mac.
  7. Unity Support Without the SDK

    Eric
    by Eric · August 2018
    If you're using Unity 2018, you don't need to import the source code into Unity. As stated in the C# SDK's readme:
  8. Unity Support Without the SDK

    tpitman
    by tpitman · August 2018
    I make a plugin for Unity that gives Unity developers Bluetooth Low Energy support on iOS and Android in a single plugin. It is cross platform.
  9. Unity works perfectly with MetaWear sensor on first run, hangs on 2nd run

    jimjam
    by jimjam · August 2018
    Good to hear you're going to try and help it getting it working in Unity Eric.
  10. Unity works perfectly with MetaWear sensor on first run, hangs on 2nd run

    Eric
    by Eric · August 2018
    I have no idea if it works in Unity but if it does, then great, you can just use the .NET Framework plugin and avoid the native dll entirely. The same Win10 plugin package also provides the same code
  11. Unity works perfectly with MetaWear sensor on first run, hangs on 2nd run

    jimjam
    by jimjam · August 2018
    Eric. Just to be clear... Are you (and by you I mean Mbientlab in general) working towards making the Mbientlab sensor work in Unity?
  12. Unity works perfectly with MetaWear sensor on first run, hangs on 2nd run

    jimjam
    by jimjam · August 2018
    and one that terminates it, that we can use in Unity's OnApplicationQuit().
  13. Problem with mbientlab/MetaWear-SDK-CSharp-Plugin-NetStandard

    abcd
    by abcd · July 2018
    (https://mbientlab.com/community/discussion/2601/unity-works-perfectly-with-metawear-sensor-on-first-run-hangs-on-2nd-run#latest "here")?
  14. Unity works perfectly with MetaWear sensor on first run, hangs on 2nd run

    jimjam
    by jimjam · July 2018
    I tried option 3 from my previous post. I'm calling GetCurrentThread in your PPL async callback, and setting the DELETE restriction on the thread so that Unity ignores the thread when it shuts down th
  15. Creating Mobile App With Unity

    GabRiv
    by GabRiv · July 2018
    We compile them as DLLs in Visual Studio. For Unity we place it in Assets->Plugins->MbientLab.MetaWear.dll
  16. Creating Mobile App With Unity

    Shrek
    by Shrek · July 2018
    Hey GabRiv, How did you manage to set up Unity to recognize the SDKs you used? did you place them on a specific folder, did you compile them as DLLs, or did you do anything different?
  17. Unity works perfectly with MetaWear sensor on first run, hangs on 2nd run

    jimjam
    by jimjam · July 2018
    https://forum.unity.com/threads/problem-with-callbacks.87513/
  18. Unity works perfectly with MetaWear sensor on first run, hangs on 2nd run

    jimjam
    by jimjam · July 2018
    The task result code is 45 the first time around, and then unity freezes on 2nd play. Now that we have a minimum reproducible test, I'll see if there is a potential work-around. I doubt we'll ever get
  19. Unity works perfectly with MetaWear sensor on first run, hangs on 2nd run

    Eric
    by Eric · July 2018
    If the same freezing behavior appears, then its highly likely a compatibility issue between Unity and Window's thread management for its async task classes. In that case, the issue is out of our hand
  20. Creating Mobile App With Unity

    System
    by System · July 2018
    This discussion was created from comments split from: Unity works perfectly with MetaWear sensor on first run, hangs on 2nd run.
Previous Next

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

Copyright © 2025 MbientLab

Built with and Bootstrap. Powered by Vanilla Forums