Ignore Compilor Errors in Unity SWF writing?
I have allot of compiler errors come up when building my SWF player. Solutions? Workarounds?
View ArticleCan't use any GUI functions
Whenever I try to use a GUI command it doesn't work and I get an error: MissingMethodException: GUI.Button Boo.Lang.Runtime.DynamicDispatching.MethodDIspatcherFactory.ProduceExtensionDispatcher () I've...
View ArticleProblem with centering text
Hi, Here's the problem I've run into. I am doing an iOS card based 2D game. Since it's card-based it has a number of cards in it. Each card has about 3 to 6 lines of text. I am using GUI.Label to show...
View ArticleCount the contents of the list from FindGameObjectsWithTag
I'm trying count the number of elements in the list generated by "GameObject.FindGameObjectsWithTag("soldier")" so that I can use the result to alter the addscore variable. Maybe I've been looking the...
View ArticleIs there a need to check saving of PlayerPrefs
I am storing simple user data through PlayerPrefs and I was wondering if there was any need to check that the saved was successful before carrying on? For example: PlayerPrefs.SetInt("KeyName", 10);...
View Articleyield while animation plays in mecanim
Hi, I'm slowly converting to mecanim and was wondering how I would yield while an animation plays out, I used to do - yield WaitForSeconds(animation["PickUp"].length); Can someone point me in the right...
View ArticleHow to implement this effect?
Hi Expert, I found this website with this word flying effect ( [http://www.unity3d8.com/content/welcome动感特效][1] ). May I know how to implement it? Thanks. [1]: http://www.unity3d8.com/content/welcome动感特效
View ArticleWhat is the best way to Push or Pull an Object?
Hello, I am currently trying to get a working script for pulling and pushing objects in a 2D game.I have heard there are several ways to do this. At first I was using the script found in the...
View ArticleAnimation Problem .
Hello , i was doing a simple cube animation(jump) using unity animation . Then i face the problem that animation plays on the same position not at the updated position . So , after lot of searching i...
View ArticleInstantiate object and make it follow raycast
Hey, I'm trying to make bullet tracer for my game. And I can't really make it to work... What i currently have done is that you can shoot with your gun and it increase recoil and spread when you shoot....
View Articleshoot prefab at mouse point
hi friends i am trying to shoot prefab at mouse point can any one help me out go = new GameObject[3]; var prefab:GameObject; var prefab2:GameObject; var prefab3:GameObject; function Start(){ go[0]=...
View ArticleMovietexture playing out of sync
Heya all, I am trying to play a movietexture in 3d space with 2 cameras looking at it at the same time. It works seemingly well, but on a closer inspection one camera is 1-2 frames behind the other....
View ArticleMecanim: Stop/Hold Animation at the end
So, I have a death animation where the character is standing, then falling to the ground. I trigger this animation through a bool value set up in mecanim. Now I want to play the death animation only...
View ArticleHi Guys, I am new with unity and has uncertainties
first i would like to know if i can sell games created with unity free version? (i saw this question before and know i can't find it (forgot the answer)). second (if i can sell them )i would like to...
View ArticleIs it actually true that StopAllCoroutines stops WWWW downloads?
Say you do this, loadLargeStupidImage(); and then this function loadLargeStupidImage() { var fetcher:WWW = new WWW( some url ); yield fetcher; fetcher.LoadImageIntoTexture(blah)l } Let's say that takes...
View ArticleIs there any way to implement 'Undo' for ScriptableObject assets?
I have trouble implementing 'undo' for a few of my config assets (ScriptableObject's). [CustomEditor(MyConfig)] class MyConfigEditor (Editor): config as MyConfig def Awake(): config = target as...
View ArticleFinding Nearest Object Both Positive And Negative?
Hi, I'm trying to find the closest point to where the mouse is clicked (topArrow, bottomArrow etc are Vector3 points on screen). The problem is no matter where I click, it either says rightArrow or...
View ArticleRaycast Issue
Ok I asked this last night but didn't give enough information, so here goes. I use this code to make a gameobject kinematic when it is a certain distance from an object. it works fine but there is a...
View ArticleGet depth in material shader
How would I go about retrieving the linearized depth in a material shader? Or is it impossible and only possible in a postprocess shader? Edit: I am talking about the depth of the Z buffer, not the...
View ArticleAndroid platform simple script that works on PC - not a member of 'UnityEngine'
Hey there, I'm so happy that android build is now available for free! So I tried to build my project but I ran into few compile errors, most of them were declaration fails, which were easy to fix......
View Article