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 ArticleInterop 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 ArticleSelect 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 ArticleStatic 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 ArticleBuild 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 ArticleIntegrating 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 ArticleStuck 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 ArticleHow 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 ArticleHow 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 ArticleIf 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 ArticleCan´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 ArticleMasking 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 ArticleLerp 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 ArticleHow 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 ArticleCommunicating 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 ArticleHello, 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 ArticleUnity 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 ArticleThe 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 ArticleUnity 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 ArticleOrbit 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