js to c# converting trouble
I'm converting a js script to a c# script but i am stuck on this part. I'm trying to draw a line between objects for (int i=0; i0) { var prev=path[i-1].position; new Gizmos.DrawLine(prev,pos);...
View Articlebuild error when building for android
this is my first time building something for android. i have installed the same api as the one running on my phone (4.2.2) and some previous versions. i get this error. ---------- Error building...
View Article[towerDefence] towers don't shoot first enemy.[solved]
hi I'm working on a new game. and i have some problems with this one. i have some problems with my script: - towers keep shooting even if they are out of range.[fixed] - my array shows only 1 enemy...
View Article[TowerDefense] enemies dont pass other enemies in combat [solved]
hi i'm working on a tower defense and my enemies need to pass other fighting enemies. but they pile up instead. i need a reflection/code review on what i did. i cant seem to find the problem issues :...
View Articleswipe camera movement wont stay between limitations
when i touch my screen (800x480)the camera disappears. im trying to limit the area where my camera can go. i managed doing it with Clamp. if (Input.touchCount > 0 && Input.GetTouch (0).phase...
View Articlearray index out of range. semi tower defence
this part of the script stops working after 19 cycles because of the error. the error is on this line. if (ownTowers[i].gameObject.GetComponent().typeOfTower == TowerControler.towerType.broken) and...
View Articleimported 3D models don't batch.
i have some 3D models that don't want to batch. when i import them they come with animations and i think that's preventing them from batching. even if i remove the animation from the object it still...
View Article3d model wont batch [dynamic]
i have some objects witch move towards the player. it is for a mobile game so batching is essential. this is one of the models [http://speedy.sh/URkDK/wal-1.FBX][1]. as far as i know it should batch...
View ArticleLerping 10 collors not that smooth
the idea is that each level has it own color and that it lerps from one level to the other one. old : my script witch lerps between 2 colors every level (for 10 levels long) but it does not change very...
View Articlesingle color lerp
i have made a scrtipt witch lerps between a bunch of colors but i only want to change it when one of the colors hat reached its mark. the problem is that it does not stop lerping. this is the code...
View Articledynamic batching not working [under 300 verts ,mobile/defuse]
i have some objects that don't want to batch but it does batch in the unity that my artists have. i have uniform scaling under 300 verts. all new items i have imported today don't! batch at all. but...
View Articlesmall bugs when re-loading scene [Android]
Sometimes when i re-enter the scene some problems occeur: this can happen after several plays. - GUI elemenst disapear. - some diviceslag terrebly . - some devices wont load any object at all. i think...
View ArticleIn game accelorometer sensitivity change. [Mobile]
i want to change the sensitivity in game. while keeping the 45 angle. the left and right controls do change but the up and down ( Z access) only changes the angle. how do i change its sensitivity ?...
View ArticleOpenSSL key hash problems
to use my leader-boards i need openssl working with unity. i have openssl installed but i still get the warning and it wont generate my key hash. openssl not found. make sure that openssl is installed...
View ArticleFacebook permissions
im trying to ling my leaderboards to facebook. the thing is i cant continue because i get this error : "It looks like you haven't made any API requests to access content with the publish_actions...
View Articlein editor object placement by script in editor
i would like to make a simple grid of cubes. i can simpely do this in runtime with a for loop but the point is that i want to do this in editor. i dont like to spend my time making grids by hand. i...
View ArticleUnityXcode ,Mach-O linker Error
When building my unity Xcode Project i get some errors. all of them are mach-O errors. i have a my developers account linked. i have fixed some errors my self but i cant seem to fix this one. it does...
View ArticleThe file ”MyApp.app“ couldn't be opened because you don't have permission to...
after building the app we get this error. The file ”MyApp.app“ couldn't be opened because you don't have permission to view it” we have cleaned the game added frameworks. we have also tried different...
View Articledestroy objects without a child.
i have an in editor script that generates a grid. after shaping the map i need to remove all parrents that dont have a child in them. i wrote the following simple script. their mest be somthing im...
View Articlexcode 6 FBUnityInterface.mm error
https://www.dropbox.com/s/sedh5blxagralcx/Schermafdruk%202015-05-29%2012.47.03.png?dl=0 i never encounterd this kind of error. the only thing i could find was this as far as i know off all the...
View Articlesimple algorithm, problems with lag [mobile]
i made a simple character movement patern and it works fine on my pc. the img is a simple vresion of it. it does make save points each turn that is something were to go wrong it would reset the...
View Articlecardboard sdk, crash/black screen
when testing the demo it crashes on start up right after the unity logo. this hapend both to my unity 4.6 and 5. on an galaxy s2+ and s3 mini. when i try it with remote i can see the red cube but can...
View Articlelow fps on high end phone/ high fps on lowend phone.
when running my game i get about 38 to 40 fps on my samgung galaxy s2+ while i only get 16 to 18 fps on my lenovo k3 note wich as an 8 core processor. i do force the resolution smaler on the k3 note...
View Articleindex number problems Forloop
i cant seem to get the right index number. it does set the lowest number but it always returns i = 0 in the debug log. it must be somthing simple but i cant see it. public void FindClosest(){ if...
View Articleadding Items to a queue
Im building a little village sim. so i wanted to make an task manager for the villagers to pick a task. so i have one script that holds the task and one that add a task. when i compile i get no errors...
View Article
More Pages to Explore .....