How do i rotate it around Y?
I need to rotate spaceship tower(like a tank tower), but i need to keep Z and X empty. var ray = Camera.main.ScreenPointToRay(Input.mousePosition); RaycastHit hit; if (Physics.Raycast(ray, out hit,...
View ArticleGet InputManager Key Name
Hello all, I'm trying to show in a GUI a message like "Press [Fire1 Button]" where Fire1 Button should be replaced to the name of the key assigned by the player. The problem is: What command I have to...
View ArticleSkydome jumps and text errors.
I recently created a script that rotates a skydome and enlarges/shrinks a font on the main menu. The problem is that the skydome starts rotating quickly at 0.001 seconds to 150 degrees on the y axis,...
View ArticleBullet Marks On Moving Object : 2D
Hello everyone; I am Making 2D game and in that i am having moving enemy on y axis. Whenever my player shoot i want bullet marks on this 3d object model.. But i don't know how to get bullet marks on...
View ArticleTerrain: Get world coordinates of sample points
Hi, I would like to get the world coordinates of some samples from a terrain in the scene. I know how to get terrain data below a random object, but I don't know how to get world coordinates of a...
View ArticleHow to check a device volume level?
I want inform users that sound level is to low to play game in right way. How can I check volume level for **a device**? It shoud work on Android, iPhone and iPad.
View ArticleHow to show CCTV or CAM stream in remote area
I want to know how to show CCTV or CAM stream in remote area in real time. In addition, I want to know the functions support mobile device.
View ArticleShader or material?
Hi! I made a character on Blender made up of UV spheres and I want it to look like a toy so I increased the materials' hardness value and this is the result. How can I make it look like this when I...
View ArticleWWW object has doesnt return the full string
Im trying to fetch a JSON from this service: http://haimtest.azurewebsites.net/MuseumService.asmx/GetNews you can see that in the browser it returns a pretty long json. tried to get it into unity in...
View ArticleHow can I fix this Coroutine Camera?
I've built a very simple coroutine with a emulated axis for my camera to move for a 2D-based game, however while this works, it's not entirely what I want. It should fire until the main buttons are...
View ArticleWhat is the best way to use tracking tool of optitrack in Unity ?
What is the best way to use tracking tool of optitrack in Unity ? VRPN ? TrackD device driver ? NatNet SDK ? Middle VR for Unity ? GetReal3D for Unity ? VR Juggler ? Thank you very much. I'm lost ...
View ArticleHouse has no colliders?
Okay, so i made a house in sketchup but when i export it to unity it has no collisions, i can walk through the house and floor and it's like it has no walls, however, i tried adding box collider, but...
View ArticleAnimation Scripting c# help
Ive been trying to get this right for ages and ive decided to ask you guys. Does anyone have any idea why its not playing the animation when i assign this script to the parent of the model im trying to...
View ArticleLightning Script Js To C# Conversion errors
I have been working on converting a JS to C# for a while now and have been having some problems with this one. With some help I have managed to get it narrowed down to one line causing a problem now....
View ArticleSQLite in Unity 4?
Hi! I've been searching a valid solution for my database problem. I'm developing a game that uses a SQLite database, but I don't know how to connect or interact with the database without getting the...
View ArticleGameobject.transform.Translate not working
This is my code: import System.Collections.Generic; var timer: float = 300; // set duration time in seconds in the Inspector var cubeArray = new List.(); var cubes: int; function Start() { } function...
View ArticleIs my A* implementation too slow?
Hi there, For my bachelor thesis I need to compare A* to the [Jump Point Search][1] algorithm based on my own implementations in the Unity engine. I'm using [512x512 map files][2] from to test them,...
View ArticleRestart Problem
Hi! I added a pause menu script and when I click restart everything freezes (except that you can look around). Here is the script: var skin:GUISkin; var levelToLoad : String; private var gldepth =...
View ArticleInstantiate new third person controller at the exact point first third person...
Hallo, In my game my third person controller is destroyed when he hits a box collider, and a new one instantiated in his place. At the moment the prefab is instantiated in the middle of the box...
View ArticleTessallation without DX11?
Hello, In short I'm generating a large plane with random heights for each vertex as a terrain object, I need to increase the level of density of vertices around the player for a smoother looking...
View Article