Detect typen string after Return
So i want to make a textfield(i can do it myself), but i want to be able to detect what we had typen after enter had been pressed. For example: 1. Player types in GoldBlock 2. Presses Enter 3. A...
View Articleif Cube is found then do if statement
how do i make a script that looks if a Cube had been instantiated, then we will do an action inside the if statement. How would i do that, im trying to make a screen that says loading world, and when a...
View ArticlePlaying @ split animations
Hi, I've got a fbx model without animations and the animations each in their own fbx using the naming convention HeavyBot@Idle etc. What I can't seem to do is get them to play... When I drag the bot...
View ArticleWhere are 4.1.1f4 release notes?
Searched the site and the links take me to the 4.1.0 release notes. Would like to know what has changed between 4.1.0 and 4.1.1. Especially related to the Avast antivirus issues, if any.
View ArticleHow to cut a model ?
Hi ! I would like the player be able to cut a branch of a tree, with the lenght he wants (so without predefined cut plane). Is it possible and how to proceed ? Thank you very much by advance
View Articleitween add null checker
how can i add null to this script to see if a object has been destroyed? public static void Stop(GameObject target, string type){ Component[] tweens = target.GetComponents(typeof(iTween)); foreach...
View ArticleCoroutines and Static function
Hi, I need to call a coroutine from a static function. I don't know too much about coroutines... but I think I need it for loading a file using WWW. I found [this][1], but I don't understand how to use...
View ArticleHow do you hide a shader property?
There's this method... ShaderUtil.IsShaderPropertyHidden ...but what's the ShaderLab syntax to make a property hidden?
View ArticlePhoton Unity Networking (PUN) API -- Where??
I don't if my google foo is just off but I cannot find an API for the PUN anywhere. I see their tutorials, and some of the resources...but I can't find an API. I'm at a loss as to what functions are...
View ArticleHow do I set a child object to not rotate if the parent WILL be rotating?
I just want a camera object to move around and not rotate using c# code. This object is a camera and it's a child of a car object. The car rotates but I don't want the camera to rotate. I want it to be...
View ArticleSticking to Moving Platform
Hi. I understand this issue has been asked several times but it seems like I still can't find a workaround to the problem. As of now, I'm currently using the script that is provided in this video:...
View Articlehow to add health to your player
i need scripts for health bar for the player. just a basic health bar something like heath starts at 100% and will decrease when hit. and the health will regenerate after like 5 seconds or something.
View ArticleHow to get spotlight light up 3D text?
I'm new to Unity and trying to have a 3D text being affected by a spotlight. So the text only is visible when the lights on. But i cant get it to work, the spotlight is only affecting other...
View ArticleGUIText viewporttoworldpoint makes text disappear.
Hi All. I've created a GUIText, whoch defaults to the center of my screen. I know I can move it around using the Pixel Offset, but I want it to be consistant regardless of the aspect ratio, so I added...
View ArticleC# class to JSON
Hi, is there an easy way to serialize an C# class to an JSON-object? public class UserData { public string username; public string password; public UserData(string username,string password) {...
View ArticleLine Renderer not working at all with Layer and Culling Mask when created in...
I have a Line Renderer with the layer set to one I made called GUI. I have two cameras, Main Camera and GUI Camera. One persp, one ortho. Main has its Culling Mask set to all except GUI. GUI has its...
View ArticleProblem with "attack" animation
Hi, This is a newbie who has just started learning unity. So please bear with me on this question. I am basically trying to develop a 3d person game. I loaded the Spartan King 3D model, attached the...
View ArticleSmooth Animations?
Hey, I would like to know how to make animations go smoothly, for e.g. I have a monster with an idle animation but when I set a OnCollisionEnter so that when my character enters the collider, the...
View ArticleAnimation translating character?
Hi, i have a weird problem. I posisition my character just above floor, but when i start animation it moves on Y axis and goes throught ground. Help will be appreciated ^_^ Start :![s][1] Animating...
View Articlemake object rotate to avoid hitting another object
Hi guys I moving gameobject with this code CarBody.transform.position = Vector3.Lerp(CarBody.transform.position, new Vector3(_xCurrent, _yCurrent, _zCurrent), speed * Time.deltaTime); my problem when...
View Article