Playing split animations problem
I splited the animations of my gameObject which is imported from Maya Autodesk into Walk, Fall and Jump. I can see the list of the split animations under the animation component, however when I run my...
View ArticleHow to make different walk sounds
Hello there! I have a script where you can walk and run, and it will play a sound. But, I need a script where different surfaces or objects when walking upon them, different sounds begin. I dont want...
View ArticleA question about a "Space Game"
So I am attempting to make a space game. I am curious, would a rigidbody with the gravity not ticked work for a space ship? Thanks!
View ArticleQuestion about pulling variable types from a List
I am trying to Implement a dialogue system for my game. I have created a class called TextBox that is 3 strings. The three strings display letter my letter to make it look like talking, yada yada. I...
View ArticleI have been struggling with a GUI texture for over a week now. What am I...
#pragma strict /* Silence MonoBehaviour Warnings*/ private function SilenceWarnings() : void { var al : ArrayList; if(al == null); var ae : AccelerationEvent; if(ae == 0); var dcm : DrawCameraMode;...
View ArticleReload ammo with Clips using variable Substraction
im thinking of a reload weapon with ammunition clips using variables, by using these vars will the concept work: var ClipAmmo var GunAmmo so if R is pressed we do GunAmmo -= 30; ClipAmmo = 30; the gun...
View ArticleProperty is being reset in play mode with custom editor
howdy? I have a class: using UnityEngine; using System.Collections; using UnityArabicSupport; [ExecuteInEditMode] public class ArabicTextMesh : MonoBehaviour { [SerializeField] private string text;...
View ArticleHow to set the position of an animated object?
Setting the position of the animated object in the inspector has no effect during runtime. If the model has no rig attached I can set the position, however with animated meshes the position is reverted...
View ArticleHow do I use contacts in OnCollisionEnter?
Hi guys! I was just wondering; How do you use contacts? I refereed to some documentation (mainly http://docs.unity3d.com/Documentation/ScriptReference/Collider.OnCollisionEnter.html and...
View ArticleInstantiate when Online or Offline.
Hello I wanna make a zombie spawned and spawned differently if the player is on a server or not online. But It only makes 1 not any more so please Help Heres my code. using UnityEngine; using...
View ArticleAnimated model position/rotation not working
I've imported an animated fbx model and it works great except that I am unable to set the initial position/rotation in the inspector. As soon as the game starts these changes are ignored and the model...
View ArticleWhy I get strange behavior when creating fields in loop in custom editor?
The custom editor below creates towers fields in Inspector as shown in picture. ![alt text][1] When I drop game object into Tower1->TurretObject the same object is shown in Tower2->TurretObject....
View ArticleGun , Cartouche ,Particle system !!!
hello , can any one tell me ,where can i find a free particle system ? I need the one that appears when the cartridges get out from the gun ??help me please
View ArticleConnect to server with TextFields
using unity's textfield documentation will i be able to connect to a server using Network.Connect(stringToEdit, 25600);
View ArticleHow will i develop the type of gui?
Hi All, I want to develop these type of Guis. in my projects. http://www.anbsoft.com/middleware/ezgui/ez_gui_showcase/index.html . I followed sample gui packages of igui and ngui and ezgui. i want to...
View ArticleHow to create shortcut by code?
i have seen android games that when installed creates a shortcut on the main screen of android phones. does anyone know how this is done in unity?
View ArticleC# How to Use the Scrollwheel to Scroll Through an Array
Hi everyone, I have been trying to create a script where you can use the scrollwheel to scroll through an array. But for some reason I get this error cannot convert type bool to type float.Any idea how...
View ArticleHow will i get animated gif images in scene?
Hi All, I don't know unity supports animated gif images are not. But i have one scene. When we open that scene i want some animated gif image to display. how will i do that. i tired unity...
View ArticleHow to Set GameObject.FindGameObjectsWithTag to SetActive(false)?
Hey guys, I've been searching around and haven't found anything. Any help is really appreciated. What is the correct syntax for hiding a gameObject with a tag? I know about **gameObject.SetActive...
View ArticleNetwork With Maps
Hello everyone i was just trying to make MultiplayerGame but i got issue with map i'm not sure how i can explain it because English is not my main language but i want to make a "Host System without...
View Article