Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.

app works in unity perfectly, but not in hololens

Hi guys,
this is a issue bothers me really several days. i have created an app, everything works perfectly when i hit play button in unity, but as soon as i deploy it in hololens it doesnt work. the script doesnt work is always the ones which activate/deactivate or enable the object.
anyone has such experience too?

Answers

  • Not all content from the Assets folder is automatically included in the build. For example when you instantiate objects at runtime, you have to place the prefabs in a folder called 'Resources'.
    Can that be the problem?

  • @awonnink said:
    Not all content from the Assets folder is automatically included in the build. For example when you instantiate objects at runtime, you have to place the prefabs in a folder called 'Resources'.
    Can that be the problem?

    hello,
    i am confused then. should i then manually put all the stuff in the right folder before i build? i have never done this before.
    the problem which kind of weird is: the same script, "activate the object", it is randomly somehow doesnt work. i have the experience that it works in scene A, if i add scene B to it, then it doesnt work anymore, altough there is no connection between any of this scripts. any idea?

  • Is there a way that you can share your script or project?

    ===
    This post provided as-is with no warranties and confers no rights. Using information provided is done at own risk.

    (Daddy, what does 'now formatting drive C:' mean?)

  • @awonnink said:
    Not all content from the Assets folder is automatically included in the build. For example when you instantiate objects at runtime, you have to place the prefabs in a folder called 'Resources'.
    Can that be the problem?

    or when i deploy the app, i always start without debugging. would it also be a reason?

  • Start without debugging has never caused problems for me. Indeed it is difficult to guess what could cause the problem without any project and code.

Sign In or Register to comment.