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

Android Auto scale backgorund for any resolution

hi...i hope to make now a good question because in 2 weeks i didn`t found a good Answard for this... So, my 2d game in unity for android is almost ready, but...when i test this app on S4, and another 5...

View Article


Sound wont play when triggered (javascript)

What I want to happen is that whenever an object passes over the empty objects with 2d box colliders titled - left, right, and middle - a sound will be played. My collisions work (I have tested them...

View Article


Checking enemy death and adding score issue Javascript

I have two separate scripts for my Player and my Enemies...how can I call to the enemy script within the player script and check to see if a specific enemy has been destroyed in order to add to the...

View Article

onMouseUp, motion velocity

Hello People I'm making a game for tablets (i.e. gesture input) I have one finger (mouseDown) Scrolling the camera past Text, when the user lets go (onMouseUp) I want the camera to keep tracking a bit...

View Article

Why isn't my RPC firing?

GameObject Manager = GameObject.Find("GameManager"); GameOverManager gom = Manager.GetComponent(); gom.GetComponent().RPC("HasDied", PhotonTargets.All); [RPC] void HasDied() { people_dead += 1;...

View Article


Problem with finding compnent of immidate children

Hi all im having problems finding the components of immediate children. Im trying to make a "power" system that starts at one parent object at say power 10, then as it goes through its children (all...

View Article

How to make fall damage using this script right here.

I have a script ,but I can't figure out how to make fall damage. I have a variable jump height that I had set to raise by 1 every second you are in the air and if you are in the air for more than one...

View Article

I am trying to print text in unity using this command 'using function OnGui...

But no matter where i put it the function goes red and it says the name function does not exist in the current context using UnityEngine; using System.Collections; public class robot : MonoBehaviour {...

View Article


Persistent+Sublevel workflow

Was curious, does Unity have a persistent+sublevel workflow similar to UDK? I'm trying to look through the documentation but can't find any. Basically, in UDK you have a persistent level that is always...

View Article


How can i add random range to an instantiated objects rotation?

To get a better understanding, imagine a jigsaw puzzle with all its little pieces, i currently have any empty spots being replaced with new pieces, but they always spawn with a default rotation of 0,...

View Article

Moving arrows far away from object

Hi, when I drag a prefab into the scene, it places it, but in order to move the object, I need to find the moving arrows, which are really far away from the object. Moving these arrows like normal...

View Article

Fast touch control and precise aiming

Hi there I am having difficulties with fast swipe touch control (I am testing new game on android, samsung galaxy s4) It may be hard do describe but my point is that I simply want to do some action...

View Article

Failed To Update Unity Web Player

Hello, Red Crucible 2 Game I Have Time Makes, And A Lot That Gave Error: ![alt text][1] How To Fix This Error? Have I lowered manually, installed about 10 times yet the error continues. Thanks For the...

View Article


How do I convert .iam to a compatible Unity file?

I have a model in Autodesk Inventor saved as an .iam (assembly) file composed of many .iap (part files). How can I convert the .iam to FBX or OBJ so Unity can use it? It's just a model for my scene. I...

View Article

Collided Objects not destroyed

I have multiple objects and I want a character to collide with them. When it does, these objects are destroyed from the game. However, only the first object is detected and the rest do nothing when the...

View Article


Web Player SendMessage Array Parameters

I'm using the SendMessage function in my html page to send arrays to the unity web player. No matter how I initialize and use the array it always comes through as a length 1024 array in the player,...

View Article

I can't find an index inside my List.

In this scrip I am instantiateing Transforms then I put those into my class and then I add the class to an array and add the array to a List. My problem is that I anticipate the first row of objects...

View Article


Help on my mouse/swipe class

Hello, I am really a beginner and I made a swipe/mouse class in c# unity and I was hoping that some one could give me some tip on it and explain it in baby language. Here is the class that I wrote. I...

View Article

2d collision according to sprite image

Hi, I'm a unity noob and sorry if this question seems a bit stupid. Basically, is there a way to have collisions match the sprite map? I'm making the flappy bird clone from the Playmaker tutorials as a...

View Article

2D character controller locked in place (C#)

Hello! I've been trying to script a 2D character controller using WASD/arrow keys (I need the character to be able to move in all four directions). I've been playing around/looking for various...

View Article
Browsing all 171066 articles
Browse latest View live


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