Giter Club home page Giter Club logo

Comments (10)

TimeWarDoctor avatar TimeWarDoctor commented on August 22, 2024

I notice this happens when attempting to create a plugin that references the Microsoft.Mixer plugin. I built an UWP plugin with a MonoBehavior class that uses the Microsoft.Mixer namespace, and included the MixerInteraction and related classes from the mixer plugin's scripts folder. Although my plugin builds fine in Visual Studio, and imports fine into Unity3D, when I attempt to add my MonoBehavior component with Mixer functionality to any GameObject, my Unity3D editor crashes.

I assume this is another symptom of this issue but if I am doing something wrong, please let me know.

Thanks!

from interactive-unity-plugin.

payzer avatar payzer commented on August 22, 2024

I think this is something else. This crash only occurs: (1) at runtime, (2) on an Xbox and (3) only for some games. If you are seeing a crash in the editor it would be something else.

The crash is in the Editor? If so, it would be something else.

from interactive-unity-plugin.

TimeWarDoctor avatar TimeWarDoctor commented on August 22, 2024

Yes...the crash is in the editor...once I add my component that has Mixer functionality to any GameObject, the Unity editor shuts down.

What namespaces should I use in my plugin? What assemblies should I reference? Do I need to pull in the scripts for the MixerInteractive class or not?

from interactive-unity-plugin.

payzer avatar payzer commented on August 22, 2024

Does it have details in the exception? It could be not referencing the right DLL. There are different mixer dlls per platform. So there's one for UWP and a different one for the Editor. That might be it.

from interactive-unity-plugin.

TimeWarDoctor avatar TimeWarDoctor commented on August 22, 2024

No exception thrown. The editor just suddenly crashes. Sorry. I'll try referencing the editor one to see if that fixes the issue.

But should I be including the MixerInteractive script in my plugin (ie compiling it)?

from interactive-unity-plugin.

payzer avatar payzer commented on August 22, 2024

If you reference that namespace, then yes, you would need to include the script file.

from interactive-unity-plugin.

TimeWarDoctor avatar TimeWarDoctor commented on August 22, 2024

Your suggestions worked like a charm. I referenced the editor DLL instead and was able to attach the component to a game object.
But what happens when I want to run the game on another UWP device? Do I have to change the reference and rebuild my library, then re-import it into Unity3D?
Or does Unity3D automatically change that reference to the Mixer plugin UWP DLL reference?

from interactive-unity-plugin.

payzer avatar payzer commented on August 22, 2024

Unity isn't quite magic. The way it works is if you have multiple platforms, you may need more than one DLL. For instance, In Unity you mark each DLL for the platforms it applies for. You do that in the inspector for the DLL. If you link against one of the Mixer DLLs, then yes you would need to create separate DLLs even if your DLL runs on each platform. The big problem is there are ifdefs in the MixerInteractive script so I'll bet Visual Studio will only compile the relevant code for each platform into your DLL.

from interactive-unity-plugin.

payzer avatar payzer commented on August 22, 2024

We've been unable to repro the original issue so we'll close this bug for now, but will open a new issue if we get a solid repro.

from interactive-unity-plugin.

payzer avatar payzer commented on August 22, 2024

By original issue, we mean a crash when trying to go interactive, not the visual studio build issue.

from interactive-unity-plugin.

Related Issues (20)

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.