Answer by code_warrior
phpMyAdmin is just the a userfriendly backend for a database like MySQL-database. What you now need is a PHP Script that runs and SQL statement similar to "SELECT Price, Link From ". You can then call...
View ArticleAnswer by code_warrior
The OnMouseDown() function is equivalent to a single one finger tap. As you are trying to accomplish touch gesture you should definitely look at the [Input.GetTouch function][1]. This function can...
View ArticleAnswer by code_warrior
Hi nischitha, I think this article perfectly describes what you are looking for: http://docs.unity3d.com/ScriptReference/LocationService.Start.html
View ArticleAnswer by code_warrior
This should help you: #pragma strict function OnCollisionEnter (col : Collision) { if(col.gameObject.name == "Boden"){ ColorTest(); } } function ColorTest () { var myColor : Color; myColor =...
View ArticleAnswer by code_warrior
Hey hubert, this is an easy example (JavaScript) which shows how to save a color into a playerprefab and how to parse the playerprefab string afterwards back into a color that can be used as an...
View ArticleAnswer by code_warrior
Hey Menos, please be a bit more specific! if you want to run games that are you using the Unity Webplayer you possibly need to enable/install it on your machine. You can get the webplayer [here][1]...
View ArticleAnswer by code_warrior
Hi robert, below you can find an easy example code that is fetching textures from a website. I hope this is helpful for you. using UnityEngine; using System.Collections; public class WWWScript :...
View ArticleAnswer by code_warrior
Hi, I would simply use the OverlapSphere function. Have a look [here][1] ! [1]: http://docs.unity3d.com/ScriptReference/Physics.OverlapSphere.html In my opinion that is the easiest way to check if an...
View ArticleAnswer by code_warrior
Hi bubak2000, I recently wrote a tutorial about this topic on my website. If you want you can check it out:...
View ArticleAnswer by code_warrior
Hi Reafy, you could try to Sync your Mono Develop Project under the Assets menu. code_warrior
View ArticleAnswer by code_warrior
Hi Marshal_Alessi, I've just checked out your question in a real simply Unity Scene, I had one UI Panel Called MyPanel. The working C# script: using UnityEngine; using UnityEngine.UI; using...
View ArticleAnswer by code_warrior
Hi Abacab, I would create a bool private variable (like buttonPressed) which you could initialise with false. You then have to to create a function (like gas function() ) where you check if the...
View ArticleAnswer by code_warrior
Hi cmkbim, normally the crossdomain.xml file is placed in the root directory of your web space (e.g. www.example.com/crossdomain.xml). Your Browser or FTPWebrequest should then automatically find it....
View ArticleAnswer by code_warrior
Hi phuongdong008, you have too keep in mind that the Unity apk-file includes far more than your simple image. Theres the splash screen, unity specific class, scene fileslibraries etc. If you want you...
View ArticleAnswer by code_warrior
Hi there Its even simpler! Assuming your using the new UI! Just change your Inspector to Debug Mode and Set Integer or Float as the **Validation** type. ![alt text][1] The string can be easily parsed...
View ArticleAnswer by code_warrior
Hey dmitry, you can get the resolution by calling the Screen class. Width dimensions: Screen.currentResolution.width Height dimensions: Screen.currentResolution.height Example: Debug.Log("Resolution:...
View ArticleAnswer by code_warrior
Hi Pumpkinotto, you could try using the following (C#): Animator[] animArray; animArray = GetComponentsInChildren(); foreach (Animator anim in animArray) { //Do something cool with anim } The...
View ArticleAnswer by code_warrior
Hi, Selecting an element out of enum is pretty simple in JavaScript. An example: var mylittlemonster : Monsters; mylittlemonster = UnityEngine.Random.Range(0, Enum.GetNames(typeof(Monsters)).Length);...
View ArticleAnswer by code_warrior
The enclosed function shows an easier way to flip a texture horizontally and vertically. Texture2D FlipTexture(Texture2D original){ Texture2D flipped = new Texture2D(original.width,original.height);...
View ArticleAnswer by code_warrior
Hi, Without knowing what you want to achieve its quite hard to tell. But I think that the problem is that you compare the variable temp with your different tanktypes. Try num instead and also pass num...
View Article