Quantcast
Channel: Answers by "Yanger_xy"
Browsing all 57 articles
Browse latest View live
↧

Answer by Yanger_xy

i came across the same problem, and after nearly 2 hours, i finally solved it. The reason is that you wanna to play the audio before its completely downloaded, you should call audio.Play function like...

View Article


Answer by Yanger_xy

i am using SAPI,It works perfect in debug mode. but after building it, it crashed down when it comes to GetVoice function. Here's my code. private SpVoice _voiceNotice = null;...

View Article


Answer by Yanger_xy

I have tested it too, without animation, the maya model in the unity perform well, but with the animation, FPS drops down nearly a half! How to optimize it, any answer will be appreciated!

View Article

Answer by Yanger_xy

LoadLevel.LoadLevelAsync() seems does not work, can you give me some demo codes? Thank you!

View Article

Answer by Yanger_xy

Change it to this: public static void ChangeSpeedText(string CurrVal) { TextMesh Temp; Temp = gameObject.GetComponent(); CurrVal = Temp; } Good luck.

View Article


Answer by Yanger_xy

Have you drag the script to your camera?

View Article

Answer by Yanger_xy

I think C# is a good choice.I don't think it's harder than java script. If you know one programming language, it's not even hard to learn it,1 week is ok.

View Article

Answer by Yanger_xy

Have you forgotten adding the fragment code? half4 frag (v2f i) : COLOR { return half4 (i.color, 1); }

View Article


Answer by Yanger_xy

The problem is here: GUI.color.a = Mathf.Lerp(0.0f, 1.0f, (Time.time / 2)); You can not set GUI.color value seperately, you should set its value like this: GUI.color = new Color(GUI.color.r,...

View Article


Answer by Yanger_xy

Are you using Unity4.6 with new UI system?

View Article

Answer by Yanger_xy

"duty 4 " I haven't played it yet.Can you describe your question in another way? NOTE TO MYSELF: I should use a comment next time. Not a answer! -- OrangeLightning :)

View Article

Answer by Yanger_xy

I am sure that you haven't attach it to a parent gameObject, So,Attach your gameObject with the animation to an Empty GameObject, and set the empty gameObject's position to 0,0,0. i.e, your gameObject...

View Article

Answer by Yanger_xy

Of course you can. I am doing it now.I just duplicate its prefabs and change its parameters and then Instantiate it. It works well. Good luck.

View Article


Answer by Yanger_xy

of course you can. just use the SetHeights function and combine with splatPrototype.

View Article

Answer by Yanger_xy

Add these codes after this two line. m.vertices = pv; m.triangles = pt; int nVertices = m.vertices.Length; Vector2 uvs = new Vector2[nVertices]; for(int i=0; i

View Article


Answer by Yanger_xy

Try this: attach a rigidbody to other objects.

View Article

Answer by Yanger_xy

Check your spellTextureArray. Are you sure that its elements are validating?

View Article


Answer by Yanger_xy

if(Input.GetMouseButton(0)&&Time.deltaTime>nextFire) { .... .... nextFire = Time.deltaTime+fireRate; ` .... } change it to this: if(Input.GetMouseButton(0)&&Time.time>nextFire) {...

View Article

Answer by Yanger_xy

Try to change camera's depth.

View Article

Answer by Yanger_xy

Are you sure that you have attached the script to a gameObject?

View Article
Browsing all 57 articles
Browse latest View live


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