Prefab inheritance without scripts. Is it possible?
This is more of a hypothetical quesiton than a syntactic one. Still, if I can do this it would be convenient to say the least, and if it's in the manual, I probably missed it somewhere. The best...
View ArticleWall Climbing Help
Hi, I am trying to make my character wall climb.. and it works, except that as soon as you let go of the horizontal direction key it will think its no longer colliding with the wall and fall down, I...
View ArticleHow Exactly Do you import FBX animations to Unity?
The manual doesn't explain it. And most tutorials don't explain it well, or they use some fancy high end professional 3D package. I use DAZ 4.6 and all i do is create an animation, bake it to the...
View ArticleUnityCar Android sensor problem
I bought the UnityCar Pro 2.2 for a android car game. When in landscape-left mode, to turn right/left I have to turn the phone forward/back. As you can see they are opposite and weird. How can I fix...
View ArticleMoving a gameobject back to its starting position
I have a script where it moves a gameobject to a certain point which is a Vector3. The problem that I'm running into is that I want the gameobject to move back to its starting position after a few...
View Articledestroy object after Application.LoadLevel
how would i destroy the object/trigger after i have entered the level, so when i return back to that scene i cant return to the previous scene. function OnTriggerEnter(){...
View ArticleHow to designate an Area as a variable ?
Hello, I'm trying to create a 2d gameplay grid in my game. I've figured out that I should probably use a 2d array to be able to refer to each tile, but I'm not sure how to specify what/where each tile...
View ArticleWhy is this script now working?
This is really getting on my nerves. I can't figure out where the problem is! It's supposed to destroy a coin when the player collides with it but it doesn't, the player collides with it and nothing...
View ArticleRotation snap based on player push?
Here is an example of the mechanic I'm trying to mimic for another project (you only need to see the rotating T shapes): http://www.youtube.com/watch?v=cftX1ShGSC4&t=0m20s Using a hinge joint and...
View ArticleMultiple scrolling textures in a shader
I'm using the following to scroll a texture in my shader:- void vert(inout appdata_full v) { v.texcoord.x = v.texcoord.x + _Time * _Speed; } which gives me a scrolling texture in for my surf function....
View ArticleMono CAN NOT CLICK ON ANYTHING!!!!!
I simply cannot click on my code in mono, the left mouse click simply does not register in any way that I can tell. I am now forced to navigate solely by use of the arrow keys, or by right clicking and...
View Article2D/Orthographic Tile Alignment Issue
Could anyone explain why my 2D tiles are not lining up? My tile sizes are 32px x 32px where the isometric tiles are 30px x 15px. The resolution is 960 x 640 with an orthographic camera of size 5....
View ArticleTrouble Accessing Script Variables of Cloned Objects
I'm having difficulty properly running methods or accessing public variables of scripts attached to cloned gameobjects. For example, the code below will create three GridPiece objects, and successfully...
View ArticleVery (very) Simple NPC movement pattern...
Hello! I started making a VERY simple NPC movement pattern between waypoints. The thing is, it works very well. I am able to make the npc walk between them perfectly. The trouble is when I try to make...
View ArticleDisable script
I have the following script attached to a collider called collider1: function Update(){ if(Collision.GameObject("Collision")); (GetComponent(test) as test).enabled = true; } It is supposed to disable a...
View ArticleMake two animations play when game object clicked
ok so..i have a cube...and a light... i want to click the light and make the cube move and the light go away i made an animation of the cube moving called "cubemove" i also made an animation of the...
View ArticleHow to shoot once a second?
I need the projectile to be instantiated once every second. Instead the projectiles instantiate like crazy. function Update(){ if (Vector3.Distance(transform.position, p1.transform.position) < 10) {...
View ArticleMaking Animated Textures, why are my textures Scrolling instead of the normal?
I'm doing Animated Textures on a plane objecct. I figured out how to do it. There is a script called SpriteSheet.cs and so on, in the website I just want to have the Sprite Sheet images to flash one by...
View Article"Couldn't connect to host" from Windows 7 but OK on OSX...?
I am using the WWW class to call a PHP script and everything works OK on my Mac Air OS X 10.7.5. But, when I build it for Windows 64-bit, I get a "couldn't connect to host" error message. The Windows...
View ArticleI can only download one asset per load up?
Hi, Im brand new to unity and im trying to ge tthe hang of things and how things work. When I open the asset store and download a model or something it downloads fine, but I CANNOT download anything...
View Article