Answer by Graham Dunnett
Either: a) `Weaponsscript` is pure c# and doesn't use any Unity functions, in which case it can be treated like a regular c# class; or b) `Weaponsscript` is a Unity script, in which case it'll have...
View ArticleAnswer by Graham Dunnett
When you build a web player, all WWW requests are channelled through the browser using NPAPI or a ActiveX. These protocols do not allow custom headers for GET requests. When running inside the editor...
View ArticleAnswer by Graham Dunnett
You are responsible for scaling your GUI to fit the screen it is running on. Changing font size doesn't cause Unity to change the size of the rectangles you pass into GUI calls. In your questions,...
View ArticleAnswer by Graham Dunnett
I guess what you'll do it build each version, then check that the data folders are identical. Assuming they are, when you create your installer, you'd have a post install step that looks at the OS that...
View ArticleAnswer by Graham Dunnett
http://forum.unity3d.com/threads/unable-to-connect-to-license-server-error.261658/
View ArticleAnswer by Graham Dunnett
It's completely normal for GPU time to be bigger than CPU time. The CPU can start work on the next frame whilst the GPU is rendering the current frame. There's no single place to say the frame time -...
View ArticleAnswer by Graham Dunnett
We treat a machine as a hardware+OS combination. You can activate on your MacBook (one activation), on your Bootcamped Win8.1 (second activation). If you try to activate on a different machine you'll...
View ArticleAnswer by Graham Dunnett
Please submit a bug report that describes in more details what you *think* is the problem, and any steps you did prior to the crash. Include your project. The QA team will take a look and see if there...
View ArticleAnswer by Graham Dunnett
When the model is visible, it has to be sent to the GPU for rendering. It's expected that this will consume additional memory. The value reported is read from the graphics driver, it's not Unity using...
View ArticleAnswer by Graham Dunnett
If you are trying to activate Unity, and get a warning about peer certificates, please consider [manual activation][1]. [1]: http://docs.unity3d.com/Manual/ManualActivationGuide.html
View ArticleAnswer by Graham Dunnett
You use the name of the script (or the class name) and not `MonoBehaviour`.
View ArticleAnswer by Graham Dunnett
You can't change the value that gets returned. But you can subtract a vector that's half the width and height from what's returned.
View ArticleAnswer by Graham Dunnett
The error message says that line 45 is at fault. This line presumably cannot be used if the `SpawnSpots` array is empty. I can see that in your `Start()` function you look up some spawn points, maybe...
View ArticleAnswer by Graham Dunnett
The compiler is saying that there is a code path which allows the `return` on line 19 to be called without the `closest` variable being set first. Maybe line 8 should set `closest` to `null`.
View ArticleAnswer by Graham Dunnett
Change the build platform to Android. Then do a build-and-run. (There's no need to convert the code.)
View ArticleAnswer by Graham Dunnett
You've not set `distance` to zero anywhere in your code. Maybe this should be done in `Start()`.
View ArticleAnswer by Graham Dunnett
The 4.6beta is the 4.5 code with the addition of Unity GUI. Unless you need the Unity GUI code, download the official 4.5 version.
View ArticleAnswer by Graham Dunnett
Maybe the terrain documentation will help: http://docs.unity3d.com/Manual/terrain-OtherSettings.html
View ArticleAnswer by Graham Dunnett
Your google must be broken. When I type "unity 4.6 beta download" into Google and hit search, the mystery is solved. (If your google really is broken try [here][1].) [1]: http://unity3d.com/unity/beta/4.6
View ArticleAnswer by Graham Dunnett
http://docs.unity3d.com/Manual/CollidersOverview.html *The scripting system can detect when collisions occur and initiate actions using the OnCollisionEnter function. However, you can also use the...
View Article