Quantcast
Channel: Answers by "code_warrior"
Browsing latest articles
Browse All 46 View Live

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 Article



Answer 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 Article

Answer 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 Article

Answer 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 Article

Answer 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 Article


Answer 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 Article

Answer 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 Article

Answer 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 Article


Answer 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 Article


Answer by code_warrior

Hi Reafy, you could try to Sync your Mono Develop Project under the Assets menu. code_warrior

View Article

Answer 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 Article

Answer 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 Article

Answer 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 Article


Answer 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 Article

Answer 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 Article


Answer 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 Article

Answer 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 Article


Answer 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 Article

Answer 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 Article

Answer 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

Answer by code_warrior

Hi, this is an easy example of an easy encoding of cyrillic characters. string cyrillicText = "Ж"; System.Text.UTF8Encoding encodingUnicode = new System.Text.UTF8Encoding(); byte[] cyrillicTextByte =...

View Article


Answer by code_warrior

Change this line: GameObject.Find("Door").animation.Play("Door Clip"); to GameObject.Find("Door").animation.Play(doorClip.name); The reason why you have to do this is because doorClip is a variable,...

View Article


Answer by code_warrior

You should have a look at the entry from the Editor.log to see which assets are the reason for this increase of the data amount. You could get there by opening the Unity Console and then press the...

View Article
Browsing latest articles
Browse All 46 View Live




Latest Images