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

How to set GUI text at right down of scene

Hi! I wondering about pixel offset of GUI Text... I set pixel offset x = 110 and y = 90, in Game view this is correctly position which I want but when I click Maximize on Play(in Game view) this...

View Article


How do I use sprites to display score in a 2D game?

I have a set of 7 sprites to display score within my game but I don't know the proper way to script them to animate to change each frame to the corresponding number. I have created 7 seperate...

View Article


how to seperate two visually distinct game modes

In my game I would like have a space view and a terrain view. The user can switch between these at any time. I could use 2 scenes but load times and sharing data seems like a draw back. Alternatively I...

View Article

Issue with jumping sound script

Hey. I made a jumping sound script, but I am receiving problems from it. I've been working on fixing this script for a very long time, but seem to be getting no were. At some point the script works...

View Article

Trouble checking against array objects

Hi all, I'm having a bit of trouble with this script. What I am trying to accomplish a sudoku type childrens game. it is a 4 x 4 grid and each tile is named A1, B2 etc. I am trying to disallow a...

View Article


Move rigidbody2D with AddForceAtPosition relative to mouseclick (no snapping)

Hi. I need help on figuring out how to move a rigidbody2D with force from mouse position, not from it's centre of mass. **Here's a quick video how my script currently works** [1]:...

View Article

Instantiating an Object Only Once

I am working on an endless runner sort of game, in which the player is going to remain stationary while the plane beneath him moves and respawns creating the illusion of movement. My issue is I cannot...

View Article

Jittery camera when altering rotation transform of player

So I've got some code for a simple rigidbody character, I'll go ahead and post it: using UnityEngine; using System.Collections; public class Controller3 : MonoBehaviour { public float runAccel = 5f;...

View Article


How to copy files into Unity's executable file location

Is it possible to tell Unity to copy two .dll files I have located outside of the Asset folder and place them where the executable file is located?

View Article


Renting a server for game hosting without a plugin

Hi. I've been looking around for something without success. I'm attempting to make a small online based game (just for learning) and I'm wondering if someone knows if it's possible to rent a server and...

View Article

Trigger and Collision Events do not work.

I used on trigger enter, and collision events of the such that used to work, now they do not, after trying to find out I used rigidbodys and double checked EVERYTHING. But still nothing happens. Does...

View Article

Help with an error urgent

Basically, I have been trying this thing for ages and i think it might almost be working. I'm VERY new to unity and this is one of my first projects. I keep getting errors in my script but even when i...

View Article

Where do I install a Build on my Android phone?

I ran Build and created a .apk file successfully. I have enabled the Security setting to allow installing non-Play Store apps. Where do I put the .apk file on my phone so that it shows up as an app?

View Article


2D movement colliding problem

With the new 2d features i have made a character that can move left and right. i use this script that i made: var mSpeed : float = 0.1; function Start () { } function Update () {...

View Article

How do I find my inactive objects and set them active again?

I inactivated my game objects by finding the objects with certain tags and inactivating them. Now, in my game, I want the camera to move back to the collection of objects but those objects when I move...

View Article


Keyframing in the Animation window

Hi There! I've run into a frustrating problem in the animation window that I hope someone can shed some light on for me. I am trying to set keyframes for a property in the in animation window, however...

View Article

How do I regenerate some health each second?

So I know this has been asked before and I've tried a lot of online solutions already. I've written this about 10 times 10 different ways and I simply can't stand that I'm still getting errors. I may...

View Article


Detecting how much of an shape/gameobject is filled

Howdy, I'm making a 2d puzzle game that the main objective is to build things from blocks, they are basic shapes like squares and triangles. I need to know if the blocks are inside the shape and how...

View Article

randomly change between 6 colors C#

I want to change a material color between 6 different colors. I tried many things: using UnityEngine; using System.Collections; public class changecolor : MonoBehaviour { void Star() { Color.cyan = 1;...

View Article

Text area having extremely odd behavior while using rich text?

Hello all, I am trying to create a simple rich text editor for in game use and have run into some funny behavior. When using the following GUI code, the cursor seems to have issue correctly navagating...

View Article
Browsing all 171066 articles
Browse latest View live