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

Moving vertex element

Hi! I have mesh elements (like pant's pockets) marked with different vertex colors. This allows me to select them as element. Now, I want to move that vertex element into some position at the right,...

View Article


Interop Kinect FaceTracking FT_SENSOR_DATA

MY problem is, I am migrating Kinect Face Tracking to C#, but my requirements are a bit specific as I'm porting this to Unity, which doesn't allow .NET Framework 4.0 (only 3.5) and does not allow...

View Article


Select mesh element

Hi! What is the approach to detect elements inside the mesh? Like, same to functionality that 3Ds Max Has - "select element"? I can think of some ways, but looping all over and looping all over seems...

View Article

Static collider restitution

Hi all, I read pretty much all I could about static colliders (colliders without a rigid body), but I still can find the reason behind what I'm seeing. I have a basic pinball setup, with a ball with...

View Article

Build Crashes After Force Quit

As stated in the title, any version of my project that has been built after I force quit another crashes continuously. Any suggestions?

View Article


Integrating Lua scripting into Unity game

I'd like in my next project make modding API and Lua seems to be perfect language for the task. It is fast, flexible and easy to sandbox. But is it possible to integrate it into Unity game? Had it been...

View Article

Stuck trying to change the position of my Main Camera through scripting

Hi, I have a variable that when it changes, I want the position of my camera to update to the new position. But... its not changing. My debug's show that its not the variable that is the problem, the...

View Article

How do I add a force on the final shot with a gun?

I have a raycast gun and when the final bullet hits a player before they die, they get pushed in the opposite direction at the Ray.hit. How do I do this? I can't figure out how to find the final shot....

View Article


How to save text and display using Touch Screen Keyboard

Hey guys, A user clicks a button and the iphone keyboard pops up. They are prompted to enter their player's name. I want to be able to save the text they enter in Player Prefs so I can grab their name...

View Article


If Application.LoadLevel fails, load mainMenu

So I have that code as a method, but apparently I can't use the final if statement in C# because it's a void method. Can anyone suggest a workaround? If you have questions about the code itself I'm on...

View Article

Can´t save my web player project as index.html

When i save my project in a index folder, there appears an error: Error building Player: IOException: Failed to Move File / Directory from 'Temp/BuildingWebplayerTemplate\index.html' to...

View Article

Image may be NSFW.
Clik here to view.

Masking an overlay?

I'm looking to create an overlay with a portion cut out that has the natural rendering of the scene. This would be easy enough if the position of the object being highlighted were in one place, but the...

View Article

Lerp acting weird when iterating through Transforms

So I'm working on this moving platform for a side-scrolling platform game and I'm having some trouble. The way that it works is that there is an array of transforms that I can define in the inspector...

View Article


How do i place a crosshair to my ray cast?

the only method i've found (printed below) where it just gets basically the middle of the screen and if my ray cast isn't aligned to that, then the whole aim is off. function OnGUI () {...

View Article

Communicating scripts from C# to javaScript

Okay how do I call upon a function in a C# to a JavaScript? and the whole purpose of this script it to get the wolf to attack you when you can't see it. This script is attached to my player...

View Article


Hello, I would like to know how to end my game when my player has been...

var player : GameObject; function OnCollisionEnter(collision : Collision) { if(collision.gameObject.tag=="Enemy"){ Destroy(player); print("hit"); } }

View Article

Unity 4 hangs when opening Visual Studio 2008?

I recently upgraded to Unity 4, and have my code editor set to Visual Studio 2008, which worked fine in Unity 3.x. However, when I double-click a script or a error message in the console, Unity just...

View Article


The referenced script on this Behaviour is missing! using...

I have create an asset bundle SceneA.unity3d from sceneA and placed it at C:\Assetbundles. I have a second scene sceneB with a script that loads the assetbundle from C:\Assetbundles, SceneB has once...

View Article

Unity Ads Android

Hey Everyone, Been pulling my hair out over this and I can't figure it out. I am trying to put ads on my game (Yes I know people don't like ads but at least my game will be free) I signed up with admob...

View Article

Orbit Collision Axis

I have some objects continuously orbiting a sphere at a fixed distance. Each have a sphere collider attached and are NOT using rigidbodies. I have detected the collisions in the OnTriggerEnter() method...

View Article
Browsing all 171066 articles
Browse latest View live