How do I control the transform.position of an instantiated prefab?
I am trying to make a road that will spawn itself as my player runs along it. Currently I have this: var spawnThis : Transform; function OnTriggerEnter (other : Collider) { Instantiate (spawnThis,...
View ArticleWhat is the best way to convert MIDI to MP3?
Hi, I am quite good at making MIDI which doesn't do me any good with Unity because it does not support MIDI. I have browsed around for some software to convert it but it always destroys my tracks. I am...
View ArticleparticleSystem.Play works when playing the game within unity but not when i...
I have a generic function that I use to play most particles in my game, and it works everytime, except for with this one effect :( The only truly notable thing with this effect is that it has the...
View ArticleMake a character controller shake.
Hi boys and girls, I have a fairly complex player_movement script that I wrote, myself. It utilises unity's character controller component. I basically want to get characters hit by "special power...
View ArticleAuthorship / Copyright C# scripts?
Is there a recommended standard for placing my mark as the author into c# scripts? Like a legally recognized standard? something like /* Authored by Kerihobo Copyright 2012 something blabla...
View Articlewhile loops infinitely, I can't tell why.
The way I expect this to work, is that the while loop will trigger this action, and if it makes it to the end with nothing happening, it should go through that same iteration again to roll a new random...
View ArticleSoft Shadows are hard...
I make a spotlight, I set the shadows to soft, I am using unity pro. Yet... the shadows are just as hard as if I had simply left them set to hard... why is this? There doesn't appear to be any sort of...
View ArticleGUI.SelectionGrid for multiplayer?
I'm a little confused about how I can make this usable for multiplayer (up to four players). using UnityEngine; using System.Collections; using System.Collections.Generic; public class GameManager :...
View Articledebug.log with color (variable)????????
After looking at this reference page: http://docs.unity3d.com/ScriptReference/Debug.Log.html I have this variable at the top of my code private Color[] color_debug_log = new Color[]{ Color.red,...
View ArticleDetect facing normal of trigger mesh?
I am making a top-down puzzle game, similar to the old Chip's Challenge... if anyone played that... I want to implement an ice-floor like in pokemon: http://www.youtube.com/watch?v=n5A_meuzGpk I have a...
View ArticleInfinite ScrollRect?
How to do an infinitely Scrolling scroll rect that snaps into place when you press up and down on keyboard?
View ArticleUnity 4.6.1 GUI Animator?
Hi, I have been following this video, and at this point, i have everything setup like he does, and i am sure he actually has the same problem but is not mentioning it....
View Article4.6.1 GUI. Get Pos Y property from script?
I am doing some black magic that can hopefully make use of the Pos Y property on uGUI elements. I'd be SO happy if I could just return the correct value for this, but whenever I try, it doesn't work. I...
View ArticleInfinite Scroll Rect?
Hi, using the new GUI system, what's the most striaght-forward way to create a scroll-rect that loops it's contents? and also, to control a scrollRect with Up/Down arrows as opposed to mouse/scrollbar?...
View ArticleHow do you change font for new GUI system in unity?
I can't find anywhere to swap out to any font other than the default. Google just comes up with 5 million posts about how to change font size (people actually ask this?).
View ArticleHow do we stop thieves?
Hi, is there any way to prevent our unity games from being ripped from their web-playable hosting locations and uploaded all over the internet by frauds who get revenue per play????? This has happened...
View ArticleRender WebCamTexture to Sprite?
I'd really like to know if anyone has had any luck converting [WebCamTexture][1] to a sprite? I would like to have a webcam texture that I can move around and scale with a GUI Canvas, so it can resize...
View ArticleWhere is the downvote button in unity Answers now?
It seems to have gone, I can only find the "like" button.
View ArticleWhere to use isShowingSplashScreen?
I noticed we can check if the splashScreen is showing now. But... how do we actually use this? Our scene will not initialize until after the splash screen is gone so where do we put such a script that...
View ArticleWhat could cause OnParticleCollision to fail?
I just upgraded to Unity 5.2. I previously had ZERO problems with this attached to a gameObject that gets hit from a particle: function OnParticleCollision (other : GameObject) { print(other.name); }...
View ArticleCan't edit lightmaps.
Hi, in Unity 4 I was able to open my lightbaked EXR files in photoshop, save them and unity would have my updated maps. Currently in Unity 5, I edit the exr, save it in the identical format, and Unity...
View Article5.4, can't set properties on ParticleSystem.EmissionModule?
Since upgrading to 5.4, I get this error in-game: ![ParticleSystem.EmissionModule error.][1] Which points to this code: ![My code.][2] Particularly, the highlighthed line. It looks like caching the...
View ArticleHow to use utf8_general_ci character set for input field text?
Hi, I need to use utf_general_ci for my character set ideally. My app is in Te Reo Māori and uses macrons in it's characters. Typing into an input field with macrons just types my letters without them....
View ArticleWhy is the BinaryFormatter's output human-readable?
public static void Save(GameData _data, string _fileName) { string filePath = Path.Combine(Application.persistentDataPath, _fileName); //Debug.Log(Path.Combine(Application.persistentDataPath,...
View ArticleType lost when entering Playmode or reloading Unity
Hi, I'm making a node graph using `ScriptableObject`s in a custom editor window. So, I have a `ScriptableObject` class called `NodeGraph`. `NodeGraph` stores a bunch of Nodes, my nodes all have...
View ArticleCustomize the context menu of a GraphView's BlackboardField?
Hi, I've been exploring the GraphView and am stuck with customizing the context menu for a VisualElement held within a Blackboard. ![alt text][1] I have a vague understanding of how to register the...
View Article