Azure / azure-spatial-anchors-samples

Azure Spatial Anchors sample code
Other
293 stars 139 forks source link

Azure Spatial Anchors #256

Closed skynard closed 3 years ago

skynard commented 3 years ago

Having trouble running the Quickstart tutorial for Azure Spatial Anchorts

When I build in Unity, I get Missing script issues : Script attached to 'Sphere' in scene '' is missing or no valid script is attached. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) and Script attached to '_PlaneThatCallsIntoPlugin' in scene '' is missing or no valid script is attached. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) –

Steps to reproduce the issue

It did occur with the sample app.

  1. Followed the guidelines for the Quickstart tutorial for ASA in Unity for iOS.
  2. Got everything installed
  3. Created my ASA account , loaded licenses,
  4. When creating build, I got the bugs created above.

Expected behavior

Build complete

Screenshots

Screen Shot 2021-04-09 at 5 38 09 AM

If applicable, add screenshots to help explain your problem.

Development information (please complete the following information)

AR Device information (please complete the following information):

The MRTK with spatial anchors tutorial for iOS looks better for what we want to achieve. Should I start with the "Azure Spatial Anchors for Android and iOS" instead?

msftradford commented 3 years ago

Thanks for bringing this to our attention @skynard. ASA SDK 2.9.0 is currently only supported in Unity 2020.3 (LTS). Do you run into the same issue when building with Unity 2020.3?

skynard commented 3 years ago

No. Now I can get the app to run on the phone. When i hit run demo app, the whole screen turns black. The ui is working fine but camera is not. I had to add the camera to the scene because i couldnt find a unity project in my git download. I just loaded all the scenes in my unity build

On Tue, Apr 13, 2021, 3:18 PM Radford Parker @.***> wrote:

Thanks for bringing this to our attention @skynard https://github.com/skynard. ASA SDK 2.9.0 is currently only supported in Unity 2020.3 (LTS) https://docs.microsoft.com/en-us/azure/spatial-anchors/how-tos/setup-unity-project?tabs=unity-package-web-ui#project-requirements. Do you run into the same issue when building with Unity 2020.3?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-spatial-anchors-samples/issues/256#issuecomment-819089443, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP5Q6BJU5QBOWYVJ67MK76LTIS7LXANCNFSM422O5JYQ .

msftradford commented 3 years ago

@skynard thanks for the feedback. Glad to hear the app is running now. Let's figure out why the Unity project was missing from the git download. Is this the tutorial that you are following? After you clone the repo and import the ASA SDK packages, is there a Unity folder? What happens when you attempt to add that folder in the Projects tab of Unity Hub?

skynard commented 3 years ago

Yes there is a Unity Folder. Same Tutorial. So I need to add the folder in the projects tab of the Unity Hub. Ok. Sorry for the ignorance. So I must add the ASA sdk after I open the project correct? Then I should be able to run the sample project. ?

On Wed, Apr 14, 2021 at 2:35 PM Radford Parker @.***> wrote:

@skynard https://github.com/skynard thanks for the feedback. Glad to hear the app is running now. Let's figure out why the Unity project was missing from the git download. Is this https://docs.microsoft.com/en-us/azure/spatial-anchors/quickstarts/get-started-unity-ios the tutorial that you are following? After you clone the repo and import the ASA SDK packages, is there a Unity folder? What happens when you attempt to add that folder in the Projects tab of Unity Hub?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-spatial-anchors-samples/issues/256#issuecomment-819863624, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP5Q6BP44TNJONVFXW22XKTTIYDATANCNFSM422O5JYQ .

msftradford commented 3 years ago

No worries! Yes, you'll open the project and then follow these instructions to use Unity's package manager to sideload the ASA SDK Core package and the ASA SDK iOS package. After that, you can continue following the quickstart instructions to build and deploy the sample project.

skynard commented 3 years ago

I am using Unity 2020.3 (LTS). I can use ASA sdk 2.10.0 yes? or stay with 2.9.0

On Wed, Apr 14, 2021 at 2:53 PM David Miller @.***> wrote:

Yes there is a Unity Folder. Same Tutorial. So I need to add the folder in the projects tab of the Unity Hub. Ok. Sorry for the ignorance. So I must add the ASA sdk after I open the project correct? Then I should be able to run the sample project. ?

On Wed, Apr 14, 2021 at 2:35 PM Radford Parker @.***> wrote:

@skynard https://github.com/skynard thanks for the feedback. Glad to hear the app is running now. Let's figure out why the Unity project was missing from the git download. Is this https://docs.microsoft.com/en-us/azure/spatial-anchors/quickstarts/get-started-unity-ios the tutorial that you are following? After you clone the repo and import the ASA SDK packages, is there a Unity folder? What happens when you attempt to add that folder in the Projects tab of Unity Hub?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-spatial-anchors-samples/issues/256#issuecomment-819863624, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP5Q6BP44TNJONVFXW22XKTTIYDATANCNFSM422O5JYQ .

skynard commented 3 years ago

Nevermind. You already said to use 2.9

On Wed, Apr 14, 2021 at 3:06 PM David Miller @.***> wrote:

I am using Unity 2020.3 (LTS). I can use ASA sdk 2.10.0 yes? or stay with 2.9.0

On Wed, Apr 14, 2021 at 2:53 PM David Miller @.***> wrote:

Yes there is a Unity Folder. Same Tutorial. So I need to add the folder in the projects tab of the Unity Hub. Ok. Sorry for the ignorance. So I must add the ASA sdk after I open the project correct? Then I should be able to run the sample project. ?

On Wed, Apr 14, 2021 at 2:35 PM Radford Parker @.***> wrote:

@skynard https://github.com/skynard thanks for the feedback. Glad to hear the app is running now. Let's figure out why the Unity project was missing from the git download. Is this https://docs.microsoft.com/en-us/azure/spatial-anchors/quickstarts/get-started-unity-ios the tutorial that you are following? After you clone the repo and import the ASA SDK packages, is there a Unity folder? What happens when you attempt to add that folder in the Projects tab of Unity Hub?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-spatial-anchors-samples/issues/256#issuecomment-819863624, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP5Q6BP44TNJONVFXW22XKTTIYDATANCNFSM422O5JYQ .

skynard commented 3 years ago

I would like to use Unity to attach sound files to the azure anchors when I get them set up properly. Would I find tutorials that would help integrate that. I am familiar with sound in unity. Just not the integration with Azure.

On Wed, Apr 14, 2021 at 3:07 PM David Miller @.***> wrote:

Nevermind. You already said to use 2.9

On Wed, Apr 14, 2021 at 3:06 PM David Miller @.***> wrote:

I am using Unity 2020.3 (LTS). I can use ASA sdk 2.10.0 yes? or stay with 2.9.0

On Wed, Apr 14, 2021 at 2:53 PM David Miller @.***> wrote:

Yes there is a Unity Folder. Same Tutorial. So I need to add the folder in the projects tab of the Unity Hub. Ok. Sorry for the ignorance. So I must add the ASA sdk after I open the project correct? Then I should be able to run the sample project. ?

On Wed, Apr 14, 2021 at 2:35 PM Radford Parker @.***> wrote:

@skynard https://github.com/skynard thanks for the feedback. Glad to hear the app is running now. Let's figure out why the Unity project was missing from the git download. Is this https://docs.microsoft.com/en-us/azure/spatial-anchors/quickstarts/get-started-unity-ios the tutorial that you are following? After you clone the repo and import the ASA SDK packages, is there a Unity folder? What happens when you attempt to add that folder in the Projects tab of Unity Hub?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-spatial-anchors-samples/issues/256#issuecomment-819863624, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP5Q6BP44TNJONVFXW22XKTTIYDATANCNFSM422O5JYQ .

skynard commented 3 years ago

Do I use the "azure - spatial- anchors-samples" or "AzureSpatialAnchors.Examples"

On Wed, Apr 14, 2021 at 3:10 PM David Miller @.***> wrote:

I would like to use Unity to attach sound files to the azure anchors when I get them set up properly. Would I find tutorials that would help integrate that. I am familiar with sound in unity. Just not the integration with Azure.

On Wed, Apr 14, 2021 at 3:07 PM David Miller @.***> wrote:

Nevermind. You already said to use 2.9

On Wed, Apr 14, 2021 at 3:06 PM David Miller @.***> wrote:

I am using Unity 2020.3 (LTS). I can use ASA sdk 2.10.0 yes? or stay with 2.9.0

On Wed, Apr 14, 2021 at 2:53 PM David Miller @.***> wrote:

Yes there is a Unity Folder. Same Tutorial. So I need to add the folder in the projects tab of the Unity Hub. Ok. Sorry for the ignorance. So I must add the ASA sdk after I open the project correct? Then I should be able to run the sample project. ?

On Wed, Apr 14, 2021 at 2:35 PM Radford Parker < @.***> wrote:

@skynard https://github.com/skynard thanks for the feedback. Glad to hear the app is running now. Let's figure out why the Unity project was missing from the git download. Is this https://docs.microsoft.com/en-us/azure/spatial-anchors/quickstarts/get-started-unity-ios the tutorial that you are following? After you clone the repo and import the ASA SDK packages, is there a Unity folder? What happens when you attempt to add that folder in the Projects tab of Unity Hub?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-spatial-anchors-samples/issues/256#issuecomment-819863624, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP5Q6BP44TNJONVFXW22XKTTIYDATANCNFSM422O5JYQ .

skynard commented 3 years ago

its the samles one

On Wed, Apr 14, 2021 at 3:13 PM David Miller @.***> wrote:

Do I use the "azure - spatial- anchors-samples" or "AzureSpatialAnchors.Examples"

On Wed, Apr 14, 2021 at 3:10 PM David Miller @.***> wrote:

I would like to use Unity to attach sound files to the azure anchors when I get them set up properly. Would I find tutorials that would help integrate that. I am familiar with sound in unity. Just not the integration with Azure.

On Wed, Apr 14, 2021 at 3:07 PM David Miller @.***> wrote:

Nevermind. You already said to use 2.9

On Wed, Apr 14, 2021 at 3:06 PM David Miller @.***> wrote:

I am using Unity 2020.3 (LTS). I can use ASA sdk 2.10.0 yes? or stay with 2.9.0

On Wed, Apr 14, 2021 at 2:53 PM David Miller @.***> wrote:

Yes there is a Unity Folder. Same Tutorial. So I need to add the folder in the projects tab of the Unity Hub. Ok. Sorry for the ignorance. So I must add the ASA sdk after I open the project correct? Then I should be able to run the sample project. ?

On Wed, Apr 14, 2021 at 2:35 PM Radford Parker < @.***> wrote:

@skynard https://github.com/skynard thanks for the feedback. Glad to hear the app is running now. Let's figure out why the Unity project was missing from the git download. Is this https://docs.microsoft.com/en-us/azure/spatial-anchors/quickstarts/get-started-unity-ios the tutorial that you are following? After you clone the repo and import the ASA SDK packages, is there a Unity folder? What happens when you attempt to add that folder in the Projects tab of Unity Hub?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-spatial-anchors-samples/issues/256#issuecomment-819863624, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP5Q6BP44TNJONVFXW22XKTTIYDATANCNFSM422O5JYQ .

skynard commented 3 years ago

I see the package manager already has the Azure Spatial Anchors SDK for iOS loaded. Do I just side load the core sdk?

On Wed, Apr 14, 2021 at 3:20 PM David Miller @.***> wrote:

its the samles one

On Wed, Apr 14, 2021 at 3:13 PM David Miller @.***> wrote:

Do I use the "azure - spatial- anchors-samples" or "AzureSpatialAnchors.Examples"

On Wed, Apr 14, 2021 at 3:10 PM David Miller @.***> wrote:

I would like to use Unity to attach sound files to the azure anchors when I get them set up properly. Would I find tutorials that would help integrate that. I am familiar with sound in unity. Just not the integration with Azure.

On Wed, Apr 14, 2021 at 3:07 PM David Miller @.***> wrote:

Nevermind. You already said to use 2.9

On Wed, Apr 14, 2021 at 3:06 PM David Miller @.***> wrote:

I am using Unity 2020.3 (LTS). I can use ASA sdk 2.10.0 yes? or stay with 2.9.0

On Wed, Apr 14, 2021 at 2:53 PM David Miller @.***> wrote:

Yes there is a Unity Folder. Same Tutorial. So I need to add the folder in the projects tab of the Unity Hub. Ok. Sorry for the ignorance. So I must add the ASA sdk after I open the project correct? Then I should be able to run the sample project. ?

On Wed, Apr 14, 2021 at 2:35 PM Radford Parker < @.***> wrote:

@skynard https://github.com/skynard thanks for the feedback. Glad to hear the app is running now. Let's figure out why the Unity project was missing from the git download. Is this https://docs.microsoft.com/en-us/azure/spatial-anchors/quickstarts/get-started-unity-ios the tutorial that you are following? After you clone the repo and import the ASA SDK packages, is there a Unity folder? What happens when you attempt to add that folder in the Projects tab of Unity Hub?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-spatial-anchors-samples/issues/256#issuecomment-819863624, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP5Q6BP44TNJONVFXW22XKTTIYDATANCNFSM422O5JYQ .

skynard commented 3 years ago

Everything worked. Thank you.

On Wed, Apr 14, 2021 at 3:30 PM David Miller @.***> wrote:

I see the package manager already has the Azure Spatial Anchors SDK for iOS loaded. Do I just side load the core sdk?

On Wed, Apr 14, 2021 at 3:20 PM David Miller @.***> wrote:

its the samles one

On Wed, Apr 14, 2021 at 3:13 PM David Miller @.***> wrote:

Do I use the "azure - spatial- anchors-samples" or "AzureSpatialAnchors.Examples"

On Wed, Apr 14, 2021 at 3:10 PM David Miller @.***> wrote:

I would like to use Unity to attach sound files to the azure anchors when I get them set up properly. Would I find tutorials that would help integrate that. I am familiar with sound in unity. Just not the integration with Azure.

On Wed, Apr 14, 2021 at 3:07 PM David Miller @.***> wrote:

Nevermind. You already said to use 2.9

On Wed, Apr 14, 2021 at 3:06 PM David Miller @.***> wrote:

I am using Unity 2020.3 (LTS). I can use ASA sdk 2.10.0 yes? or stay with 2.9.0

On Wed, Apr 14, 2021 at 2:53 PM David Miller @.***> wrote:

Yes there is a Unity Folder. Same Tutorial. So I need to add the folder in the projects tab of the Unity Hub. Ok. Sorry for the ignorance. So I must add the ASA sdk after I open the project correct? Then I should be able to run the sample project. ?

On Wed, Apr 14, 2021 at 2:35 PM Radford Parker < @.***> wrote:

@skynard https://github.com/skynard thanks for the feedback. Glad to hear the app is running now. Let's figure out why the Unity project was missing from the git download. Is this https://docs.microsoft.com/en-us/azure/spatial-anchors/quickstarts/get-started-unity-ios the tutorial that you are following? After you clone the repo and import the ASA SDK packages, is there a Unity folder? What happens when you attempt to add that folder in the Projects tab of Unity Hub?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-spatial-anchors-samples/issues/256#issuecomment-819863624, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP5Q6BP44TNJONVFXW22XKTTIYDATANCNFSM422O5JYQ .

skynard commented 3 years ago

Having trouble with the tutorial for Azure spatial anchor tutorial. Sorry to be a pest on the weekend. Trying to add the script

for some reason when I add the ParentAnchor in the Object field, it is a cube prefab icon and not a script icon. Also the "No Function" dropdown does not contain the "AnchorModuleScript" Its in my assets folder but I cant add to the dropdown. any advice would be helpful. Maybe I this can only be run through Hololense?

On Thu, Apr 15, 2021 at 11:35 AM Radford Parker @.***> wrote:

Closed #256 https://github.com/Azure/azure-spatial-anchors-samples/issues/256.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-spatial-anchors-samples/issues/256#event-4600979463, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP5Q6BMXMXXHNZPFU3RU3X3TI4WXHANCNFSM422O5JYQ .