Answer by Graham Dunnett
Set a bool to true when the anim starts playing, and only process mouse clicks while that bool is false. When the anim stops set the bool back to false.
View ArticleAnswer by Graham Dunnett
The default Arial font is included in the build for different platforms.
View ArticleAnswer by Graham Dunnett
Server errors are treated as a failure condition, `WWW.text` will be empty, and `WWW.error` will be set.
View ArticleAnswer by Graham Dunnett
The asset bundle FAQ in the docs has an in-depth explanation which tells you when asset bundles can be shared across versions. (3.4 added the TypeTree feature.) To answer your question, a 3.4 app...
View ArticleAnswer by Graham Dunnett
time is greater than one all the time one second after the game starts. When the game starts, start a timer. When it reaches one, do your wave, then set the timer back to zero.
View ArticleAnswer by Graham Dunnett
Activation needs to happen using the GUI. There is no command-line based activation possible.
View ArticleAnswer by Graham Dunnett
It's unlikely the lag is related to screen size. Use the built-in profiler to work out what's happening.
View ArticleAnswer by Graham Dunnett
Unity has a [Time][1] class that can tell you how time is changing. There is also a [MeshRenderer][2] class that gives you access to the materials a mesh contains. [1]:...
View ArticleAnswer by Graham Dunnett
Download a patch release from the Announcements thread: http://forum.unity3d.com/threads/unity-patch-releases.246198/ These patches are presented with a file size and MD5 hash, so you can quickly check...
View ArticleAnswer by Graham Dunnett
http://docs.unity3d.com/ScriptReference/Object.Instantiate.html The first form of the `Instantiate` function lets you specify position and rotation.
View ArticleAnswer by Graham Dunnett
Sounds like you know more about this area than most of us. :-) Webplayers cannot use external native plugins, so any solution you find will need to be pure c-sharp assemblies.
View ArticleAnswer by Graham Dunnett
Close Unity, then use this page: http://docs.unity3d.com/Manual/Unity4xActivation-Overview.html to find the location of the license file. Delete the license file. Then start Unity and it'll ask to be...
View ArticleAnswer by Graham Dunnett
[http://wiki.unity3d.com/index.php/Loading_xml_files][1] http://forum.unity3d.com/threads/xml-reading-a-xml-file-in-unity-how-to-do-it.44441/...
View ArticleAnswer by Graham Dunnett
`Matrix4x4.TRS()` changes the way that rendering happens. It does not change the way that input touch and mouse position get computed. Don't use this approach to resize your GUI elements.
View ArticleAnswer by Graham Dunnett
Have Unity web player call out to your webpage javascript. Then use whatever Javascript you'd usually use to open a page in a new tab. Although a quick google search (pro-tip) shows:...
View ArticleAnswer by Graham Dunnett
The web player has no access to the hard drive on the machine where it is running. Your text file, even if it's only 3k in size either needs to be fetched from the server where the web player is...
View ArticleAnswer by Graham Dunnett
It's a networked game, so the client can connect to the server and ask to be told the current level/scene. You could, for example, have the client make an RPC requesting the server make an RPC call to...
View ArticleAnswer by Graham Dunnett
a. Visit the [docs][1]. b. Read the first line of the page, which tells you more about the error you get. c. Visit the [linked][2] Microsoft site. d. Dive into the [System.IO][3] namespace. e. Drill...
View ArticleAnswer by Graham Dunnett
You instantiate a new asteroid at line 36. So, `asteroidInstance` is your game object coming from the prefab. It'll have your script attached, so you can use `GetComponent()` to get the script, then...
View Article