Quantcast
Channel: Latest Questions on Unity Answers
Browsing all 171066 articles
Browse latest View live
↧

Can't seem to get movement to work

I'm trying to get some basic movement, back and forth, rotating with left and right. I can get the movement to work but for some reason when I try to get the capsule to move up a sloped plane it just...

View Article


How to have a (wait) yield on a for loop?

Well this works great, however there is a problem. If I press the screen, it counts it as many times as possible: for (var evt : Touch in Input.touches) { var HitTest0 = num0.HitTest(evt.position); }...

View Article


Issue when saving a texture with a text painted on it at runtime.

Hi people! I have this requirement to paint a text over a texture. Following the instructions here [http://goo.gl/tqZrn][1] I could paint the text on a texture at runtime. Great but when I try to save...

View Article

Why dont FBX texture import and apply on the moment the fbx is imported?

I import an fbx model and it wont apply the textures. The Texture .fbm will load after I save the scene or import another thing. Even so, textures don't apply themselves. I do the same on my brother's...

View Article

CPU wait on GPU for finish

The game im making for iOS is having a lot of memory issues. so i started searching to see what could be the problem with instruments and with the OpenGL ES analyzer i came up with 2 occurrences where...

View Article


Imported Animations From 3DS Max

Hi, so I imported a 3ds max file (converted to a FBX first) and it did have an animation. I was wondering how do I use that animation in unity. When I place it in the scene view, it is at its first...

View Article

On the bottom of the screen it tells me that I have two audio listeners on...

View Article

NullReferenceException: object not in inspector?

Alright this has been driving me crazy for a while, And i'm starting to think i might have hit a bug or something. Unless i'm mistaking, there is no reason i should be getting a null reference unless...

View Article


how to get the negative of an input Axis?

im making my own custom Character Motor and i tried using this: if (Input.GetAxis("Vertical") > 0.01f) { p_Motor.MoveForward(); } if (Input.GetAxis("Vertical") < -0.01f) { p_Motor.MoveBack(); }...

View Article


How to make a rigidbody rotate towards an object using physics

So the basics of this is I am trying to make a space ship simulator so I am using physics with no friction or gravity. I am trying to set up some AI to allow ships to travel from 1 point to another. I...

View Article

How can I get the time since the epoch date in Unity3D?

In normal C#, I can usually use a function like this: private double getTime() { double dateReturn = Math.Round((DateTime.Now - new DateTime(1970, 1, 1)).TotalMilliseconds); return dateReturn; }...

View Article

Semi-Quick question about "LookAt" script after respawn.

Hi, I am having a problem with my "Look at" type of script(JavaScript). It's on a boat turret and it fires when it spawns as long as it can find the target tagged BoatTarget. It makes the turret on the...

View Article

Im having trouble with my Audio playing on a Mouse Click. Tell me what is...

@script RequireComponent(AudioSource) var front : AudioClip; var back : AudioClip; function Update(){ if (Input.GetMouseButtonDown(0)) { audio.PlayOneShot(AudioSource.front, 1.0); } if...

View Article


Error: 'transform' is not a member of 'Object'

**Asserts.radar/Radar.js(47,23): BCE0019: 'transform' is not a member of 'Object'** **I am getting this error when i am working in android platform but in pc platform i m not getting any error**. Here...

View Article

What is that random blue sphere around my player and everything else?

I was working on my game and I noticed some random blue sphere around my object. They do not show up in game and they can be shrunken down. What are they, I think they are messing me up somehow.

View Article


Howto save ProceduralTexture as PNG

Hi Everyone, I am experimenting with ProceduralMaterials and specifically with the method "GetGeneratedTextures()". The method returns an Array of ProceduralTextures. I am searching for a way to save...

View Article

Create 3D GUI Button?

Hello everyone ![alt text][1] [1]: /storage/temp/9013-3d.png as u can see in picture its GUI.Button but its kinda 3D ,, its like umm i really dont know how to say it in english but its rotate inside...

View Article


After update i lost my project, how can i get it back?

I installed unity 4 over my previous unity 3.5, the project i was working on is now gone when i launch unity, how can i get it back? where do projects save to by default? or have i lost it for good?...

View Article

Access varibles in and array

How would I go about accessing a variable in an/multiple objects in an array. JS script The game object Unit will be placed will be placed inside the seleectedUnits array. How would I get the variable...

View Article

How do I set collision on an avatar?

I am trying to create a glider simulation for one of my classes. My glider was made in 3DSMax if that makes a difference. My problem is that I set a collider on my glider, and when I start the game the...

View Article
Browsing all 171066 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>