Answer by Graham Dunnett
http://docs.unity3d.com/Documentation/ScriptReference/Input.GetTouch.html
View ArticleAnswer by Graham Dunnett
http://docs.unity3d.com/Documentation/ScriptReference/Application.LogCallback.html
View ArticleAnswer by Graham Dunnett
Start off with your "top" cube. Found out what objects it touches. Then for each of those objects, find what they touch. Do this over and over until you run out of options, or one of the object touches...
View ArticleAnswer by Graham Dunnett
http://docs.unity3d.com/Documentation/ScriptReference/Input-inputString.html It's documented that this function returns the string that was entered in the current frame. If your user is busy with the...
View ArticleAnswer by Graham Dunnett
void Update () { if (transform.position.x >1.0f) { Debug.Log ("test"); } }
View ArticleAnswer by Graham Dunnett
Have a counter, set it to zero. If the space bar is pressed and the counter is zero start a timer and increment the counter. If the counter was one, and the timer is less than some value, then you've...
View ArticleAnswer by Graham Dunnett
The script at: http://docs.unity3d.com/Documentation/ScriptReference/Physics.OverlapSphere.html shows how to iterate over the objects that the test has found. Inside the while loop just `Debug.Log` the...
View ArticleAnswer by Graham Dunnett
`Mathf.Clamp` is documented as taking three values. The second is the min value and the third is the max value. Each time you use this API you have the min and max values reversed. I think we can all...
View ArticleAnswer by Graham Dunnett
Your post was moderated, not sure why. Not normal on the forum.
View ArticleAnswer by Graham Dunnett
Maybe gravity is upside down compared to your world? See: http://docs.unity3d.com/Documentation/ScriptReference/Physics-gravity.html
View ArticleAnswer by Graham Dunnett
`SceneView` is technically internal only, so it's not documented.
View ArticleAnswer by Graham Dunnett
This message is only generated when you use the `-projectPath` command line argument. Unity will tell you if the file path that is given does not represent a Unity project. A Unity project is the...
View ArticleAnswer by Graham Dunnett
(Sometimes it's easier to just try it, rather than interpret what people mean, or guess their level of experience.) using UnityEngine; using System; public class argl : MonoBehaviour { void...
View ArticleAnswer by Graham Dunnett
Accuracy is obviously lost. So, any calculations that you do based on time, assuming you're interested in how many milliseconds have passed since the last calculation will give you dubious values.
View ArticleAnswer by Graham Dunnett
Check out the documentation: http://docs.unity3d.com/Documentation/ScriptReference/GUI.DrawTexture.html It shows correct usage of `DrawTexture()`.
View ArticleAnswer by Graham Dunnett
Yes, Unity allows you to spawn objects. The `Instantiate` API does this. And yes, you can have on-screen elements that show the number of arrows remaining, and have some system that allows the arrows...
View ArticleAnswer by Graham Dunnett
See here: http://msdn.microsoft.com/en-us/library/windowsphone/develop/e6883c06(v=vs.105).aspx This is a string compare function on WP8. The last argument is shown to be a `StringComparison` enum,...
View Article