Access location services from Unity [duplicate] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Hi I'm developing a game in unity and I need test this game in iOS. For particular case I need test the input touch for controllers but this takes much time.
When I change some lines of code in script C#, I must re-build iOS game in unity, after that I must build and run the Xcode project for testing and run the game on my iPhone.
This process takes much time, so the question is if there are
some ways to accelerate this process ?

Unity Remote 5 is designed to do. It reduces the amount of time you deploy your app to your iOS or Android device during development. You can get the iOS version here and the Android version here.
It supports the following sensors:
Touch
Accelerometer
Gyroscope
Webcam
Screen orientation change events
The latest version which is 5.0 added support for the following:
Android:
Gamepads connected to the remote device
Compass and location data(GPS)
iOS:
MFi gamepads connected to the remote device (requires Unity 5.4)
3D Touch and Apple Pencil support
Apple TV devices
Compass and location data(GPS)
When you download the app linked above, connect your iOS device to your computer, open the app.
From Unity Editor, go to
Edit->Project Settings->Editor then chose your device(iOS) from the device drop down menu. Click play and you will be able to test your touch functions from the Editor.
Even with this App, it is recommended to test your app on the actual device once in while. So at-least, do this once in a day to make sure everything is working as it should.

Related

How can I create a program which connect Flight Simulator (FSX/P3D) to my cloud storage (Onedrive)? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 days ago.
Improve this question
Hello everyone, I'm taking a project to make a photoreal scenery for my Flight Simulator (FSX/P3D). Unfortunately, because of very large amount of data (nearly 1TB of scenery size) that I couldn't store all of them on my hard disk, I planned to upload them into my Onedrive storage. I want to create a small program running on Windows that will connect my simulator to my cloud storage to download and install scenery instantly for user that doesn't have enough storage for all scenery data.small scenery pieces that I loaded to my simulator
My scenery is divided into area described in image below (I called each rectangle is a tile).
The program I want to create will first extract current aircraft coordinates and altitude from simulator (running) and then it will download and inject tile that contain aircraft position based on aircraft coordinates and other tiles surrounding the main tile (maybe 9x9 tiles). When the aircraft position is not in current tile anymore, it will delete furthest tiles and then continue download next tiles. This activity will repeat until user exit current simulator section or out of my scenery range.My tile's area.
I haven't tried anything yet. I just made some small scenery files and tested it. Because I'm not good in coding and I don't learn much about code (at least for now)🥲 so I asked for help here. Thanks for your help 🤗. (Oh and sorry for my English).

Visual Equalizer Bars in C# Windows Forms [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
For my college project, I have decided to create a rhythm game which is similar to Beatmania, with notes falling from the top of the screen to an area where the user needs to make an input.
Now, for the main menu, I would like to include a visual equalizer, with bars moving up and down in rhythm with the music that is playing in the background:
This would need to be customisable to be added into the main menu (transparency so that background behind the bars is visible etc.
Currently, I have been looking all over the internet to try and find a way to program such a thing. However (unless I'm using the term wrong), all results come up with actually equalising sound based on bass etc. and since I'm somewhat of a C# beginner I am baffled as to what is said.
XNA Visual Equalizer Video - this is the closest thing I have found to what I would like. Unfortunately, I have no idea how to use XNA and there is a chance that my college will not install XNA, so working on the project will take longer, as I can only work on it at home. So Windows Forms would be preferred.
Any input on this would be appreciated. If you have any questions then please ask :)
Edit: (Not sure how to narrow this question down) - I need a Visual Equalizer in Windows Forms, does Windows have such a method, class or reference that can be used right off the bat without having to download plugins, extensions etc.?
What you are looking for is called an Audio spectrum analyzer. XNA is commonly used in games, and should just be included as a .dll in your files. I don't think you have to install that b/c you can publish XNA content as a native executable.
However, instead of reinventing the wheel, the nice folks at code project have shared a project that analyzes the frequency of sound. You should be able to modify this and get it to work to your specifications.

Hybrid App development - iOS, Android, Windows Phone AND Desktop? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm developing an application on my own that i want to run as a Web App, and on iOS, Android, Windows Phone and as a desktop application.
The easiest way I can see to achieve this is to develop a hybrid app in visual studio in Angular/Ionic so that will take care of the mobile devices.
For the desktop app I was intending on creating a C# application that acted as a container for a web control then simply deploy the HTML/JS/CSS in with it. Obviously i'll replace Ionic with Bootstrap for the layout but it means I can keep 90% of the JS code between apps saving me a lot of time.
The reason I need a native desktop app is that it needs access to WCF to communicate with other parts of the suite.
I've looked at Metro Apps but they're horrific, having a business application that demands full screen isn't gonna be any good. I know there are options for "fixing" metro apps but it still doesn't give the everything I need(like being able to minimize to tray & WCF)
Is this the workflow that you'd expect or am I missing something obvious?
Why not build your app as single page web application to begin with, using Angular.js and Bootstrap (it is the "mobile first" framework after all)? Run same app, with minor changes, on iOS, Android and Windows Phone using Cordova. For Windows Desktop, have a WinForms/WPF "frame" and embedded Chromium browser (CEF Sharp or CEF glue).
If you are developing for an enterprise environment, you should be prepared to face old versions (less than 9) of Internet Explorer rendering your WebView in the desktop application. Depending on your use of html5 specific things this might be a problem.
Aside from that, your workflow sounds reasonable, although I'm wondering how you access your WCF-Service on the mobile devices without any platform specific code and why that way isn't suitable for the desktop application?

Code to record from microphone and audio devices in asp.net and save on the server? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to record video and audio, from the user's system using asp.net and save on the server.
Is there any simple solution?
I see this link Code to record from webcam or default video and audio devices in asp.net? but this is for Video Recording , i need just voice recording.
To record sound from a microphone in a web browser you need to use the getUserMedia() JavaScript API. However, this is a somewhat new API that still might change and as far as I know there is no support for this in Internet Explorer and Safari today.
Another option is to use a plugin. Both Silverlight and Flash will allow you to record sound from a microphone but this constrains you to another set of browsers.
Even if you combine both solutions, e.g. use getUserMedia() in Chrome, Firefox and Opera and Silverlight in desktop Internet Explorer and Safari you will not be able to record sound on an iPad with Safari.

How to detect if any video is being played now? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
How to detect if any video is being played now using autohotkey, autoit, vbscript, c#, or c?
Video could be being played/streamed in any local player, web based player, or html5 player. We do not know the name of player also player may not be in the full screen.
PS. Detecting CPU load may not give the correct result always, so it is not acceptable.
I've done a small bit of work on this back in the day. There is a WIN32API (old school) that gets/sets whether or not to disable the screensaver (in user32.dll, GetScreenSaverActive(), SetScreenSaverActive - see: http://www.codeproject.com/Articles/17067/Controlling-The-Screen-Saver-With-C). This is the most likely flag to be set when a video is playing but it not 100% reliable as not every player will implement it. It WILL work for most browser videos, whether played through plugin, natively, or via DirectX. This also works for most (all?) external players such as vlc, windvd, etc.
But.
There is no sure-fire, 100% way of determining a video playing. You cannot;
1. Check for sound playing as the user may be using iTunes and not all videos have sound
2. Check for full screen (usually the better option) as the video may be playing in a browser
3. Check cpu/gpu load as it's not reliable and you have no other way to determine
4. Be absolutely sure that the player hasn't cleared/reset the win32 flag when minimized
Another option would be to try and collate a list of possile executable names for all known players (doable but time consuming to find data, espesially on older versions), and check to see if they're running. This isn't 100% reliable either as a plugin by be preloaded but a browser but not actually playing a video at that moment in time.
In short, there's no 100% way that I know of but several ways that'll get you 90-95% there. That is the purpose of knowing if there's a video playing? Perhaps there's an easier way to find what you're looking for...

Categories

Resources