how can i get my ping?
im a player in the game. how can i get my ping value?i'll make that : if i have 100+ ping , connection lost
View ArticleDetecting internet availability on Android
[Application.internetReachability][1] always returns [NetworkReachability.NotReachable][2] on my Android 2.1. Works as expected in Editor. I also tried using the [Ping][3] class to detect internet...
View ArticleHow can I get the ping from the master server?
I have a complicated code, however I call GUILayout.Label("Ping : " + Network.GetAveragePing(Network.player) + " ms"); but unfortunately it debug me -1, then trying Debug.Log(Network.player); it also...
View ArticleWhy is my ping so high?
I've made a pretty simple game, in which u controll just a first person controller, but when I check the ping between me and another player it ranges fromm 200 to 300. Please, could someone give me any...
View ArticlePing class producing false positives, alternative to check connectivity?
I'm checking for online connectivity using **Application.internetReachability** against both LAN and Data Networks. Unfortunately I've found that if the client is connected to a network, but that...
View Articleclient to client ping - NAT punchthrough
Hi, is there any way to get client A to client B ping when they are connected to the same server? I need a way to get the direct ping from client A to client B, without going through the server. Can...
View ArticleBest way to check internet connectivity (Android + iOS)
We're developing an app, which has to maintain an internet connection to communicate with our Smartfox servers. Before connecting to our Smartfox, we need to know if there's a stable internet...
View ArticleCan only ping the MasterServer after pinging it externally using command...
Been trying to get master server code working for some time now. Thought a straight up copy from the example would get things running. The example was working fine, but after changing the game name and...
View ArticleMathf.PingPong with ease in and out?
I have the following code in Update() which counts from 0 to 100 and back to 0, but I want to make the value start slowly, build up to speed as it increases, then slow as it reaches 100, and then speed...
View ArticleSession timeout does not notice work being done in Unity web player and...
Currently I have a web application with a session timeout window that pops up after 20 minutes of inactivity. However, I noticed that when I work inside and play inside the Unity web player, the...
View ArticleIs web site available from within a scene
I have been searching the Q&A to get an answer but everything I look it either costs money (which, being out of work I currently don't have) or doesn't work in all situations (i.e. public vs...
View ArticleArc Movement Lerp, Mathf.Sin and Mathf.Pingpong question
Hello everyone, i am trying to move an object from a point to b, and b to a, in short using Mathf.PingPong. But on the way, i want it to make arc movement, like it's bending. So I have searched a bit...
View ArticleVery Low fps.
Hi there! I have script wich realizes creatures behaviour. If there are 3 or more monsters with this scripts FPS will become very low. If i delete all Update methods (Update(), FixedUpdate(),...
View ArticleVery Low FPS
Hi! I have very very low fps in my game. My creatures have behaviour script attached and if i remove this script or at least Update() functions fps will become normal. So suggest me please something to...
View ArticleSwitching from Phothon Cloud to Server?
Me and some friends have been working on a simple Multiplayer project. It's only a small project meant to entertain us. We are currently using the Photon Cloud but due to the high ping we would like to...
View ArticlePing multiple objects?
So I know you can select multiple objects in the hierachy. Selection.gameObjects(); And I know how to highlight one object. EditorGUIUtility.PingObject(j.gameObject); But how do I highlight multiple...
View ArticleCheck InternetConnection
I've tried to using Ping for check the internet is available or not but it's checking only wifi connected but if i connect with 3G network then always it gives me the no Internet connection. So, is...
View ArticleAm i using the ping class right?
I am new to unity and i just want to make sure my code is working right(no hidden bug or anything like that) public class pingping : MonoBehaviour { Ping ping; List pingList; void Start () { pingList =...
View ArticlePing make my android app crash if no internet connection
Hi, I am looking for a system which determine if internet is available when i launch my app. After searching on internet i have try many solution and on editor this one works : IEnumerator...
View ArticleNetworking: Cannot get average ping to server
The title says it all, I am trying to use `Network.getAveragePing(NetworkPlayer)` I don't know if the getAveragePing method works or not, the issue I am having is finding a value for the NetworkPlayer...
View Article