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

How to calc force by variables?

Hi, in my application I have a prefab object, which I instantiate and add a relative force. Just like this: var projectile: GameObject; projectile = Instantiate(projectilePrefab, transform.position,...

View Article


Collision Detection Problem

Hi I have a quick question. I’m new to programming with unity3d, and would appreciate any advice that would help out with my problem. My collision detection is not working correctly. When my character...

View Article


Reset highScore in Java problem

Hi All, I'm looking for a way to reset my high score. I have a button on my main manu screen that should allaw to reset the high score. The vars for this are: var highScore3DText : TextMesh; //The...

View Article

Why do my triggers not work when I build my game?

For some reason my game works fine in unity but when I build it and run it outside of the program it no longer works. I am using box colliders to make my game objects dissapear. My player has a box...

View Article

How to avoid multiple mouse clicks registering in OnGUI?

I have a character portrait with GUI.Box that when clicked hides the portrait and disables the box, and then shows the character's inventory with a new GUI.Box in the same space as before that when...

View Article


Assign camera on Online game to character

Hi, I've decided to make on my server\client set up an authoritative server, thus i decided that all Network.Instantiate should be donne by the server, and so every object is owned by the server. On...

View Article

WorldtoViewportPoint to display text at relative location

I'm trying to display a bit of text like '16' or 'Epic Widget' to the screen based on where an object is in the 3d game world in relation to the viewport. using UnityEngine; using System.Collections;...

View Article

Lightmap Baking Error

Whenever I go to bake in Unity I get this error "Something went wrong in Beast lightmapper: File IO error - could not create process". I have Unity Pro 4.1.5 this is very annoying and I cannot create...

View Article


Rotate Texture Over Time

I have the following script I am using for creating an Radar system. I have recently add code to draw a texture called texture. This has a declaration for it that allows it to rotate and its called...

View Article


How Do I access a Variable from One Script in another script?

In a C# script i tried this First file: class Ada{ int n; } Another file: class Bada{ Ada myAda; void start(){ myAda = new Ada(); myAda.n = 3; } } ANDDD IT didn't work. I got error like "You are trying...

View Article

Classic Question, how do i check for button press in editor mode?

I want to check if the user press a key while in the editor so i can bind some action to it. What i dont know is how to make the script run in editor and constantly.

View Article

How to put gameObject in ScrollView window

Hi, I'm currently trying to use GUI.BeginScrollView, GUI.EndScrollView to scroll a window. In this window I want to place my gameObject (which is a 3D model of a skeleton), but I can't figure out how...

View Article

When built for web player, my php doesn't return the datatable. Works just...

My build works great, updates the SQL Datatable in standalone build and in Unity3D when editing just fine. When I build for web and have it uploaded onto my website, zgprogramming.net, it will not load...

View Article


Help with camera

Greetings all, chances are it is simple to fix but can not find the solution hopefully I can help. What I need is that when my character jump the camera does not jump the sole that moves in the X axis...

View Article

In game OS / run "scripts"

Has anyone seen an example of a simulated in game dummy operating system? I am thinking of making an in game terminal to change the trajectory of an object using player made scripts but don't want to...

View Article


Unity Crashes while Loading the AngryBots Demo

I recently installed Unity, and I could not find any of the demo projects. After some googling I discovered that they were under the Public User, and tried to open it. It crashed that first time and...

View Article

Raycast from rectangular room corners to center?

This is an extension of my prior question posted here: http://answers.unity3d.com/questions/512454/issue-with-cut-off-rooms-in-dungeon-generator.html However, this time I have more of a focused...

View Article


Script not working in Unity 4

Hi, I have a death script, and it worked fine in unity 3.5.7. It would slowly fade to white then load the level again then fade out. Now in unity 4 it just instantly goes to white and doesn't load....

View Article

Bootcamp particles

I know this has been asked before, but the answer was not clear to me. how do I create particles(like bulletholes etc.) on other objects then the prefabs that were in the bootcamp demo? I have my own...

View Article

Store temp var / invert var

Hi, i have a problem, i don't know how to invert a var, the first will be modified and the second will copy the first. //Icon move if(Event.current.type == EventType.MouseUp && dragging){...

View Article
Browsing all 171066 articles
Browse latest View live


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