Quantcast
Channel: Answers by "Graham-Dunnett"
Browsing all 959 articles
Browse latest View live
↧

Answer by Graham Dunnett

The 5.1 Unet solution is totally different from Networking in previous Unity version.

View Article


Answer by Graham Dunnett

You need to fix all the errors in your code. Each error that is reported will include an error code, so `CS1525` is an example. This is an error for c#. If you are using JS, then your errors may start...

View Article


Answer by Graham Dunnett

I am sure it can be done. But when I looked at your `WebGame.html`, and found the URL you're downloading, and then download that, I get an HTML page. My guess is that `uploadingit.com` is doing...

View Article

Answer by Graham Dunnett

Take the position in the last frame and the position in the current frame. Cast a ray from the old position to the new one. If that ray hits a wall, then you know the ball has travelled passed the wall.

View Article

Answer by Graham Dunnett

No. (Can I upgrade my car to a Lamborghini Gallardo without have to spend any money?)

View Article


Answer by Graham Dunnett

I am amazed that your google searching didn't come up with an answer. Anyway: a) Divide you time by 60 and convert result into a float. b) Multiply the fractional part by 60 and that's seconds. c)...

View Article

Answer by Graham Dunnett

int r = Random.Range(0, 100); // start somewhere between zero and 99 for (i = 0; i < 1000; i++){ r += Random.Range(-3, 4); // add somewhere between +/- 3 Debug.Log(i + " : " + r); }

View Article

Answer by Graham Dunnett

Comparing a float in your `Update()` isn't going to appear in any profiler results.

View Article


Answer by Graham Dunnett

Try using a `ScriptableObject`: http://docs.unity3d.com/ScriptReference/ScriptableObject.html A ScriptableObject doesn't get deleted when a scene changes.

View Article


Answer by Graham Dunnett

`Application.loadedLevel` tells you the currently loaded level. If you want to switch to the next level use `Application.LoadLevel()`. See the docs:...

View Article

Answer by Graham Dunnett

Try: https://www.assetstore.unity3d.com/en/#!/content/10 This is a 3.x Unity project... but I am pretty sure that the artwork will still work in 5.x. (The scripts will probably break.)

View Article

Answer by Graham Dunnett

Spending a bit of time reading the docs will probably get you home and dry: http://docs.unity3d.com/ScriptReference/GL.LINES.html I know the docs are huge, but searching for lines in the search box...

View Article

Answer by Graham Dunnett

Your script is defining a class called `Vector3`. This is clearly an error, since you don't want to define a class that replaces the Unity one. You're getting the error because **your** `Vector3`...

View Article


Answer by Graham Dunnett

The example on the [documentation page][1] computes the normal on the hit point. It even draws it. Does it not work for you? [1]:...

View Article

Answer by Graham Dunnett

I'd recommend implement iOS specific code using the `Input.Touch()` API.

View Article


Answer by Graham Dunnett

The documentation example for `WWW.LoadFromCacheOrDownload()` shows the code waiting for the download to finish before it does anything with the `WWW`. I assume trying to unload assets that haven't...

View Article

Answer by Graham Dunnett

`UnityEditor` is not allowed to be included in builds. It's only allowed to be used in editor extensions.

View Article


Answer by Graham Dunnett

The error is line 53. Not sure why your compiler error has a different line - probably related to how the code is structured. Line 53 says "grab the `Birdmovement` component and assign it to the...

View Article

Answer by Graham Dunnett

I did the search for you: http://stackoverflow.com/questions/1185408/converting-from-longitude-latitude-to-cartesian-coordinates

View Article

Answer by Graham Dunnett

[Application.loadedLevel][1] will tell you the current level. So you can check that. Or only add that script to the camera of levels that need to display the time. [1]:...

View Article
Browsing all 959 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>