Selected text from text Area?
Hi Guys, I am creating an app like text editor (same as Unity's question editor where I typed this question), with features bold,italic,underline,font,color,alignment etc. My problems are- - I am...
View ArticleGetting strange error when building game
I am making one game in unity, today when I tried to build apk for the game, I put my keystore in Publish Settings and when I hit enter to select the alias I am getting the following error which does...
View ArticleHow to draw gizmos before OnSceneGUI?
Hi all, While making map editor I've faced a problem of OnSceneGUI() Z-ordering: ![alt text][1] I draw grid in OnDrawGizmos(), howerer buttons are rendered in Custom Editor script in OnSceneGUI() using...
View ArticleWhy is using GetComponent(CharacterController) causing null reference...
Alright, I'm attaching this script to a GameObject named 'test' which has a character controller. Every frame it prints "Null" AND "test(UnityEngine.CharacterController)" This is doing two things....
View ArticleIF - ELSE Issue! (Help! I'm new to this)
Hey all, I'm just learning how to script using javascript for Unity. I've just started and learnt a bit about if and else statements, however I am pulling my hair out of frustration now able to work...
View ArticleAirplane Curving rotation?
Hello, I'm working on a Airplane-based commands, not using an Aircraft itself, but the controls are pretty much the same. I already have the basic commands set: WASD: W- Go down S- Go Up (Inverted for...
View ArticleBody fell of through terrain
Hi! I have rigged body attached to my FPS camera, so player can see his character body, but it seems, that only camera is colliding with terrain. I was trying to add rigidbody component to my body,...
View ArticleGame launches as background process in windows 2012
The unity3d compiled PC game launches as a background process in windows 2012, other unity games launch fine and show under the app tab and show a window and graphics etc. I have tried running it with...
View ArticleAuto Translate after cloning gameobject using Instantiate()
I want to create drag and drop functionality for a gameObject. When user touches the object it creates a duplicate and the duplicate supports drag and drop features when the original object remains in...
View ArticleObject reference not set to an instance of an object
Here is a screenshot of the file in the inspector. http://imgur.com/g6rY88K I have this script attached to "main camera" in a blank scene. http://pastebin.com/QMkZrqpA THanks!
View ArticleGyroscope on HTC WP8X
Hi, I'm trying to figure out whether this smartphone has a gyroscope or not. The specs site from HTC says "yes" but Unity3D says with "SystemInfo.supportsGyroscope" "no". Does anyone know something...
View ArticleGame feels like it's in slow mo?
The objects in the game move extremely slow. In order to get them to move faster, I have to increase the speed by quite a lot, and it still doesn't work right. It doesn't matter if the object is in the...
View Articleproblem extracting transform from an array
hi all, this is a script to move an object in V3 towards a target object, the target object is randomly chosen from an array of object with a certain tag, the main issue is in my find target function...
View Articlehow can i get objects size according to world coordinate?
I want to draw number of objects in half of screen in rows and columns. But i don't want those drawn in next half of screen so i have to find out that if my object is being drawn on next half of screen...
View ArticleModel tips over for no reason
Picture it: - Terrain is imported but is basically a flat plane with a mesh collider - A train locomotive chassis (rigid body: box with wheel colliders) sits on the terrain, collides correctly. It sits...
View ArticleI need a way to get a gameobject trough the charactercontroller
I have a script but it isn't working as you see in the question that's my question here is what i have so far var target : GameObject; function Start () { } function Update () { } function...
View Articlechanging secondary texture dynamically?
I want to change the texture of a secondary material on my 3d model ( a smiley face, in this case). When I use renderer.material.mainTexture, it changes the base texture of my model, and not the face...
View ArticleUnity Scene Loading Crash
![alt text][1] [1]: /storage/temp/15860-help.png everything was fine and working but i just saved my project as ussualy and next morning this appeared, please answer i've been working on this project...
View ArticleGravity value changes, has no effect.
I have a simple scene. A box that acts as a button with a simple onMouseUp function on a javascript attached. I have another box, rigidbody with no scripts. When the scene starts the rigidbody drops...
View ArticleIs there a way to tweak the fog so it will be mapped on the world Y axis...
Hello dear community ! I want the fog to depend of the world coordinates instead of the camera. I am building a top down shooter and I want a fog layer on the ground so the base of building will be a...
View Article