How to import existing animation file to model in unity web player?
I'm trying to import an existing .anim file to an existing unity model. I know how do so it in Unity, and build into a HTML file, but I'm wondering is there a method to do it just using unityscript or...
View ArticleComparing tags stored in array with the tag of GameObject (Raycasting)
Hey guys am creating an array which is used for storing the tags of all the elements that are currently present on the screen.This array is of string type.Now i want to compare this with the tag of...
View ArticleStop batching at runtime? Still in memory?
During runtime, if you have an object and want to stop it from being batched, can you simply disable it? And if it was being batched previously, will it remain in memory if it is not actually being...
View ArticleWhy isn't this move script working?
#pragma strict var speed : float = 4.0; var gravity : float = 18.0; var velocity : Vector3 = Vector3.zero; var controller : CharacterController; function Start () { controller =...
View Articlehow do you spawn cubes?
I am making a game like bejeweled and I want the cubes to fall down into place.
View ArticleCannot assign to 'Respawn' because it is a 'method group'?
Hello again, I have yet another problem with the health script I have been trying to write, First off here is my code: using UnityEngine; using System.Collections; public class Health : MonoBehaviour {...
View ArticleAssetBundle to prefab => meshes/textures missing
Sinds Unity Pro 4.2 our AssetBundles no longer work when trying to load them in our Unity web project. The error message says something about rebuilding the AssetBundles. So that's what I'm trying to...
View ArticleUnity If statement issue (It goes through the function without meeting the...
Okay so I have the basics down but I'm still new to programming with unity. I'm creating a simple fps and I'm at the point where I'm doing my enemy scripting. I thought I created a script that made...
View ArticleTarnsfer direction
Hi, i am writting mobile game. I am using penelope joystick. My problem : I can't find way to transfer direction from joystick to character. I have 2x Vector2 (start,end) of joystick movment. (start...
View ArticleMissing libraries/methods in Win8?
I'm trying to port some existing games to Win8 and I'm running into all sorts of missing assembly references and methods that I don't understand. They compile normally when I'm testing in Unity, but...
View ArticleHealth Regeneration Issues.
I'm trying to implement a SLOW health regeneration system... That will regenerate 1 health per 1 second. This is what i have in my health script ATM. var regen : float = 1; function Update () {...
View ArticleHow to control an object with a mouse?
Well, I've been trying to work with this code that I got from elsewhere. #pragma strict var myCamera : Camera; function Start () { } function Update () { var vec : Vector3 =...
View ArticleHow much angle per axis to achieve a global rotation.
How can i know how much angle for each axis need to be rotate to so i can achieve a global rotation value. For example, i have two game object: game object A with global rotation (8,12,15) game object...
View Articlehow to add collider to animated enemy character
i have a enemy character in my game.but i dont know how to add collider to it! i add mesh collider but this not work for my animated character. please help me by your think and your work. is it good to...
View ArticleIs it possible to load second scene but keep the first one running?
Hi, Im writing space game. I have space scene and I want to do planet view scene. However if I load new planet view scene then space scene will be unloaded. I dont want that, space scene should always...
View ArticleHide mouse cursor on startup
I am using the free version of Unity. I would like to start the game without the mouse shown. The player settings only can set default cursor and hotspot. While showing the Powered by Unity screen, I...
View ArticleLag in Interactive cloth
If i increase the interactive cloth thickness to > 1, it starts to lag. If i keep the thickness < 1, then when i move attached collider it moves a very much and jumps. Is there a way to reduce...
View ArticleLegacy Setting Forcing Objects to 0 Axes
I have two types of animated objects that float in the air. One set do just fine. But, the other set will all be set to Vector3.Zero if I set the animation to Legacy. If I dont set it to Legacy, the...
View ArticleImages Rotation
Hi guys.. i just wanted to rotate may images in my game.. this is the script public float rotationSpeed = 1.0f; private Vector3 rotateSpeed; void Start(){ } void Update () { if (Input.GetMouseButton...
View ArticleHow to check against the object type of an instance
Ok so I have a bullet that is fired out of my space ship and then replaces itself with an explosion when it hits something (2D game so when it passes over an object). The problem is it is also...
View Article