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

Rotation always changing values!

Vector3 rot = transform.localEulerAngles; if(Input.GetKey(KeyCode.P)) { rot.y = 160.0f; mouseLook.enabled = false; theCamera.localRotation = Quaternion.Slerp(theCamera.localRotation,...

View Article


UriFormatException

I am trying to use WWW to connect and download a text file from a web server however I keep getting this exception: UriFormatException: Invalid URI: The format of the URI could not be determined....

View Article


Draw the GL.Vertex3 at specific position

Hi developers, I am using GL.Vertex3 to plot a waveform graph. However, can I set the boundary on where the graph should start to plot and where to end? Which means the graph should only can plot at a...

View Article

How do I make objects stick to moving platforms?

Im trying to make a ball game where a ball just rolls around and jumps and has to avoid falling off the platform i will be adding elevators and random moving platforms, and my ball just keeps falling...

View Article

How to fill circle in Eric5h5's TextureDrawCircle function

**Hi,** well I'm make a new version of that http://wiki.unity3d.com/index.php?title=TextureDrawCircle function Circle (tex : Texture2D, cx : int, cy : int, r : int, col : Color) { for(i = 0; i <= r;...

View Article


Referencing variables via external script?

I want to reference variables from script A into script B. I'm using GetComponent and everything works fine. The only issue I'm running into is that I have about 100+ variables in script A, and I don't...

View Article

Can't find my saved image in android gallery

Application.CaptureScreenshot( "../../../../DCIM/Camera/Myscreenshot"+ PlayerPrefs.GetInt("HighScore") +".png"); I use this code to take screenshot on my android it works fine only that i can't find it...

View Article

How do I add a textlabel that shows up after the user clicks on a structure?

I am trying to add a textlabel or label with some text that pops up after the user clicks down on an object. For example, if I have an mesh of an apple on the screen and the user clicks on the apple, a...

View Article


Unity Crashes when opened

When I run unity it crashes and a dialog appears saying "Unity has stopped working" These are my PC specs if it helps: OS: Windows 8.1 CPU: Intel i7-3770 RAM: 16GB GPU Nvidia 630 What can I do to...

View Article


Unable to mark animation as legacy

Hello, When I make an animation I keep getting the error that I need to mark it as legacy before I can use it on an object. I have tried everything to solve it, but nothing seem to work. Can anyone...

View Article

Upside down wall jumps!

Hey Guys and Gals, I have been happily using this code to prevent my characters from jumping up walls. for (var contact : ContactPoint in coll.contacts) { if(coll.gameObject.tag == "Floor" &&...

View Article

How to create a map of my whole level?

Got a 3D shooter which is located on an Island. The players should be able to press "M" and a map will pop up showing the whole island. (Not an interactive map, which will show your location in...

View Article

How to set points back to zero when reload the scene?

hello to all! I'm making a memory card game. i flip two card objects in my game and when i click on them both (which they have the same image) i get 10points and they both get destroyed. I have a js...

View Article


GUI Buttons with boolean problems

Hey guys, I'm making a board game and I want it to be turn based. So I wrote a code that is supposed to make certain buttons appear and disappear to make it work. It's also sending out two static...

View Article

Understanding AnimationState class

Hello I am trying to use this class AnimationState to control my animations http://docs.unity3d.com/Documentation/ScriptReference/AnimationState.html but I fail I think because I don't understand it's...

View Article


How do i deactivate a GameObject from js

I have a simple script I want to deactivate a gameObject that it is attached to. This is what I have but it does not work #pragma strict public var SubtractOne : GameObject; function Start () {...

View Article

Best Way to Create a Terrain

Hello everyone, today I had a quick question. I want to create a forest, but I don't think it would look very natural if it was completely flat. What would be the quickest way to make a natural and...

View Article


Im trying to create a mmo...

How do I create a cluster of servers that will run my mmo? Just the basic stuff to get started or a demo I can mess with will work. Thanks.

View Article

UseNAT QUestion

ALright. I want to host a server, using a port that's not blocked, but no one can see my server from outsidenetowrks. I've heard that USENAT does wonders, is that true?

View Article

Search for Item in Inventory (Generic List) (Javascript)

Hello! I am relatively new to scripting so please forgive me if my question is astupid :) I want to search for a specific Item in my Intentory. My inventory Code looks like this:+ # Inventory.js static...

View Article
Browsing all 171066 articles
Browse latest View live


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