Tuesday, 27 January 2015

Unity Android Landscape Orientation

0 comments
Aplikasi berjalan, tapi pada saat saya ubah ke landscape, malah force close xD, hanya bisa potrait, begini caranya:

Buka file manifest, lalu tambahin code ini di setiap activity:

android:screenOrientation="sensorLandscape"

Tuesday, 20 January 2015

[Accessibility]Missing contentDescription attribute on image in eclipse

0 comments
Warningnya:

"[Accessibility]Missing contentDescription attribute on image in eclipse"

How to solve this problem??

http://stackoverflow.com/questions/8500544/android-lint-contentdescription-warning

Sunday, 14 December 2014

App Policies: 10.4 Back Button (WP)

0 comments

For Example:

void Update () {
if (Input.GetKeyDown (KeyCode.Escape)) {
Application.LoadLevel("MainMenu");
}
}



OR

void Update () {
if (Input.GetKeyDown (KeyCode.Escape)) {
Application.Quit ();
}

}

Sunday, 9 November 2014

Use of undeclared identifier 'GL_BGRA_EXT'

0 comments
Sehari sebelumnya, aplikasi tidak bermasalah, lalu aku update OS dan Xcodenya. Ketika aku buka aplikasinya kembali, ternyata eh ternyata muncul beberapa error xD, hadeuuuuh... Salah satunya ada error gini:
"Use of undeclared identifier 'GL_BGRA_EXT'"

Kemudian aku tanya mbah deh, xixixi, katanya:

" I fixed these by replacing GL_BGRA_EXT with GL_RGBA in both instances "

maksudnya; ganti "GL_BGRA_EXT" dengan "GL_RGBA "

Akhirnya... errorpun hilang,,,  :D

Sumber:
http://forum.unity3d.com/threads/ios8-xcode6-compatibility.249533/

Memanggil Fungsi dari Gameobject Lain

0 comments
 GameObject go = GameObject.Find("somegameobjectname");  
 ScriptB other = (ScriptB) go.GetComponent(typeof(ScriptB));  
 other.DoSomething();  


sumber:
http://answers.unity3d.com/questions/7555/how-do-i-call-a-function-in-another-gameobjects-sc.html

Memanggil Fungsi C# di Javascript

0 comments
 var myVar = GameObject.Find("Game Object Name");  
 myVar.SendMessage("Function Name");  

Saturday, 1 November 2014

Unity 3d Game - Pendukung Belajar

0 comments

  1. http://unity3d.com/learn
  2. Lynda - Advanced Unity 3D Game Programming[AKD])