- Home /
Can A Simple Phone Number Dialler Be Made In Unity
Just wondering if it's possible to make a simple interactive screen that can actually dial a phone number and then be able to answer a phone.
Answer by Graham-Dunnett · Nov 28, 2014 at 10:47 AM
Unity cannot do this, but you can write an app for the mobile in Unity which uses native mobile API calls.
Well I'm using my unity to make my application for a stand alone player on $$anonymous$$ac but in the end it will be used on a LCD touch screen for a car monitor, So I was wondering if maybe a simple screen could be made with a phone buttons made as GUI texture buttons that could be made to dial a number to an outside device like a car phone.
$$anonymous$$aybe even through a USB controlled Relay series could be made to work even?
I'm not sure though, I'm not super great with Unity but I have seen it do some REALLY amazing things that it was never really designed for so I would not be surprised if it could somehow be done, maybe even using Internet phone or something??
Answer by multimediamarkers · Jul 01, 2019 at 11:37 AM
You could use this code to set up a call from a mobile phone:
/// <summary>
/// Executes the button action call phone number
/// </summary>
private void ExecuteButtonAction_CallPhoneNumber()
{
Application.OpenURL("tel://" + phoneNumber);
if (DebugManager.instance.isDebugAll && DebugLogging) { Debug.Log("[ButtonAR] Phone number " + phoneNumber + " is being called."); }
}
Answer by Optrix · Jul 01, 2019 at 11:39 AM
The question is more along the lines of "Can I do this in C#" rather than "Can I do this in Unity?" - take a look around at some other websites to see if you can use the Telephony API or SAPI from C# and you might find some techniques that work.
Your answer
Follow this Question
Related Questions
How do I set my android app to landscape mode entirely? 1 Answer
Use phone as a light gun? 0 Answers
How do I get started with Phone VR in 2021? 1 Answer
How do I get the Application Path? 8 Answers
onExit, onQuit, or anything like that? 2 Answers