Differences in Java and C# in unity

Differences in Java and C# in unity

Advertisemen

Check out our YouTube Channel - Aarlangdi dotKom for short films


If you want to call WaitForSeconds in java in unity3d. You write this -


In C# in unity3d. You write this -


Also, what I found out was, waitForSeconds in java is faster and smother than C#.

lass="" style="clear: both; text-align: center;">In another example, If you want to call transform function. In java, you just write -


If you try to write same way in C#, you will get an error saying "Cannot modify a value type return value of `UnityEngine.Transform.position'. Consider storing the value in a temporary variable" so you have to write this way -




I will write more difference between java and C# in unity in my later short tutorials...
Hope this helps you guys

Advertisemen

Disclaimer: Gambar, artikel ataupun video yang ada di web ini terkadang berasal dari berbagai sumber media lain. Hak Cipta sepenuhnya dipegang oleh sumber tersebut. Jika ada masalah terkait hal ini, Anda dapat menghubungi kami disini.

Tidak ada komentar:

Posting Komentar

© Copyright 2017 Tutorial Unity 3D