Disappearing Gameobject
i am making a word game in unity in which i have many game objects each gameobject name is a letter from A to Z. when i click on the object the letter appear on screen .when i made a word it compare it...
View ArticleBootcamp Compiler Errors?
How do I fix my problem with Bootcamp? I can't play the Demo because ALL the scripts have compiler errors - what do I do???
View ArticleRotating a Sprite to face mouse / target?
I've hit a wall here as I switched my very early 2d topdown shooter prototype from a 3D project to a 2D one, and started working with 2D sprites instead of planes with images. I thought this would be a...
View Articleanimation problem when my ball and kii is moving
Hi everyone, I have problem when ball moving kii must move with it, kii is child of ball, it work but not good, who have idea and can help me? Thanks!
View Articlehow to make CharacterCollider ignore LayerMask?
like if 1 player is wearing wall breacher he could pass through certain walls while others cannot follow him. how to make so: CharacterController controller = transform.GetComponent();...
View ArticleSpritesheet animation from a projector
Hi, I'm trying to simulate a cloud shadow on a terrain. I figured using a projector would be a good idea. So far, I've managed to project a texture and translate the projection's position over time....
View ArticleChange GameObject Rigidbody2D mass not working ?
So i'm doing this in a script on my player to be able to modify the Rigidbody2D of an enemy in my game: public class PlayerScript : MonoBehaviour { public Rigidbody2D _body; public GameObject enemy; }...
View ArticleHelp with sanity script loading death screen
i have this script, the sanity drops all the time to 0. and i have another script which gives scares and can make the sanity meter rise. InsanityManager.js #pragma strict var currentSanity : float =...
View ArticleCould someone please help me with a double jump?
This is my current script, doing a 2D simple platform game and this is the first time I have used unity, using a c# script, thanks for any help! PS some of my script has been cut of below for some...
View ArticleHow to make an advanced line of sight?
Hi, does anybody know how to create an advanced line of sight for AI? Featuring that the visibility length fades out instead of just suddenly stop and that the AI responds differently depending how...
View ArticleInspector preview overflow
I really can't tell if it's a bug or "a feature". But sometimes, the object selected gets drawn into the inspector, covering all the controls I need to tweek. Here I just created a plane and i just put...
View ArticleBuild to Windows phone 7.1
Is it possible to build a project to a windows 7.1 phone app? I'm having troubles releasing for windows 8 phone apps, and my unity only builds windows 8 phone apps.
View ArticleRigidbody Freeze Contraints Not Working
Hey everyone, I have a simple object with a Rigidbody that has it's Y position frozen. I don't want any movement on the Y axis whatsoever. The freeze works fine when there are no physics...
View ArticleRigidbody Direction Setting
I am working on a character movement. It is top down, and I would like to have the character quickly rotate and then begin moving in the vector direction of (horizontal input, 0f, vertical input). I am...
View ArticleAnimated Cursor using user32.dll keep changing back
Hi I want to change my cursor depending on multiple conditions. I know that there is Cursor.SetCursor(...) but I have animated cursors and i don't think using a Texture2D array is a good idea since I...
View Articleenemy ai movement.
hi, am doing a space shooter game, in which i want the enemy to move in a zig zag movement, (i.e) it has to move forward and at the same time it has to move left and right. i have tried with physics,...
View Article3D Gravity towards one object
I am already aware of unity's directional gravity from the world properties, and have been experimenting quite a bit with it recently... However, I wanted an object to attract all objects in a specific...
View ArticlePlayerPrefs will not save on iOS devices
Hi, I recently released my first game to the iOS app store. I am using PlayerPrefs to save the players score so that the game can be resumed at anytime. The players score is saved in a file called...
View ArticleRenderTexture loses content
I draw to Rendertexture and i need to do this once , but after i turn on system Lock(win+l)or just switch user, RenderTexture lose content and i should render it again. I dont know how to detect system...
View ArticleWhy does the rotation of subobjects change and how to solve?
I am instantiating a prefab consisting of other prefabs. The particle simulation is 2D and they are facing each other so the z rotation for one of them is 0 and 180 for the other. But when the prefabs...
View Article