hololens

Speech recognition doesn't work in Unity Hololens project

别说谁变了你拦得住时间么 提交于 2019-12-12 14:32:45
问题 I'm trying to create my own Unity project with speech recognition in Hololens. I copy pasted the instructions from tutorial. Literally copy pasted the SpeechManager.cs file and SphereCommands.cs file to my project but it won't budge. I tried putting some sounds in: KeywordRecognizer_OnPhraseRecognized to see if I get there (even before invoking anything), but I don't. I start the keywordRecognizer.Start() (also added sounds to make sure I was there) but I have no idea if it's working

How change expanding direction of VerticalLayoutGroup in Unity without rotating?

我的梦境 提交于 2019-12-12 13:31:00
问题 I need to change the expanding direction of the VerticalLayoutGroup. With the default behavior the group will expand downstairs. What i want is, that the group will expand upstairs. The expected behavior is described in this Video. (Link to the answer on stackoverflow https://stackoverflow.com/a/43192904/11236801) The solution on the link is, to rotate the LayoutGroup about 180°. Now this seems more like a workaround, because all childs have to be rotated as well. The solution suggested by

HoloLens Draw a graph

五迷三道 提交于 2019-12-12 09:10:34
问题 What is the best way to draw a graph for the HoloLens in unity? I am new to this platform and have no idea which packages will work and which dont, the graph gets data dynamically. EDIT: I have tried LineRenderer but it seems very limited in version 5.4 of Unity 回答1: A possible Solution for drawing a 3D-Graph is using a particle system: Simple Example for a Component Script for a particle system: public class Graph: MonoBehaviour { //Particle-Resolution of the Graph [Range(10, 100)] public

Adjust Canvas Menu Size and Scale in a HoloWorld

隐身守侯 提交于 2019-12-12 05:27:32
问题 The following script is supposed to enlarge a UI Canvas menu in the world space, so as the user gets far, the menu grows in size and scale, and as the user approaches it, it shrinks proportionately. We are actually trying to update the height of the menu to the camera's frustum height, so that the menu always takes up exactly the vertical height of the camera's view. Is this the way towards a solution? What are we doing wrong that the new size does not match the cam' frustum height? We have

HoloLens emulator connect to server on LAN

蓝咒 提交于 2019-12-12 03:53:31
问题 I have a websocket server running on a pc connected to the pc through a switch. When I make a websocket client in the HoloLens with the IP of the server it doesn't connect. How come? I cannot ping the HoloLens emulator from the pc with the server but I can ping the pc running the emulator. 回答1: By default all interactions with the emulator are done through a 169.254.xxx.xxx address. This address is not externally routable. If you go to the networking menu option in the web portal for the

Hololens Placing Objects With Spatial Understanding

家住魔仙堡 提交于 2019-12-12 03:43:49
问题 I have been running SpatialUnderstandingExample scene from holo-toolkit. Couldnt figure out how to place my objects into the scene. I want to replace those small boxes that comes default with my own objects. How can I do that? Thanks edit: found the draw box but how do i push my object there? edit2: finally pushed an object at the position but still code is very complicated its messing up with the size and shape of my object. Will try to make it clean and neat. 回答1: It's been a while since I

Hololens Methods of Input and Output

a 夏天 提交于 2019-12-11 16:47:54
问题 I have planned to start building an application for the Hololens in a month from now. So right now, I am just in the preliminary design and feasibility check. (For the record I have built simple applications for the Hololens using Unity and also have used the camera for some image recognition) My main concern is methods of inputing data to my application. In a normal application you have GUI widgets such as spinners or sliders, if you want to enter a numberic number. How can I input numeric

Error on PS script that installs app to Hololens using device portal APIs

↘锁芯ラ 提交于 2019-12-11 10:27:52
问题 I'm trying to develop a PS script that install app package to Hololens via the device portal APIs. Looking for some troubleshooting tips on the 400 BAD REQUEST response. Here are the references I used : https://docs.microsoft.com/en-us/windows/mixed-reality/device-portal-api-reference END POINT /api/app/packagemanager/package (POST) $user = 'snarain' $pass = 'snarain' $pair = "$($user):$($pass)" $encodedCreds = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($pair))

Gameobject not destroying when image target lost vuforia- Hololens

旧巷老猫 提交于 2019-12-11 08:48:11
问题 Im developing an AR application with vuforia and unity for hololens . I have some canvas components which have to be destroyed when image target is lost . Im using defaulttrackableeventhandler to destroy those object with gameobject.setactive(false); in tracking lost function. The very same app works well with android phone but not with hololens When built for UWP , the gameobject is not destroying even in play mode. Its destroying twice and stays static on the third time and when viewed in

Hololens device build fails to not finding Assembly-CSharp-firstpass.dll

蹲街弑〆低调 提交于 2019-12-11 07:39:55
问题 I'm trying to build Unity application for Hololens device on Visual Studio 2017 and I'm getting the following errors: Metadata file '...\GeneratedProjects\UWP\Assembly-CSharp-firstpass\bin\x86\Release\Assembly-CSharp-firstpass.dll' could not be found Metadata file '...\GeneratedProjects\UWP\Assembly-CSharp\bin\x86\Release\Assembly-CSharp.dll' I'm aware of the similar question here but uninstalling and installing the latest versions of both Unity and VS did not help. Neither did starting a