Capturing Screenshots on Android
I am trying to capture screenshots on Android, they need to appear in the Android gallery. So far I have been able to use Application.CaptureScreenshot successfully to take screenshots, but it only...
View ArticleProblems with LookAt (C#)
I have a problem with LookAt. I have some gameobjects (each have sprite renderer) and these gameobjects are childs of another gameobject. I need to make the sprites face towards the movement direction,...
View ArticleChecking if all gameobjects in array are inactive
I need to check an array of gameobjects and do something once they all become inactive. The array is quite long so doing this... if(object[0].activeInHierarchy == false &&...
View ArticlePinch to zoom acting weird on Android
I watched an Unity tutorial recently on how to write pinch to zoom script in C#. I was able to make it work just as it is supposed to work on my Samsung Galaxy Tab S 10.5, but for some weird reason it...
View ArticleHow to prevent touch going through UI?
I have been reading about this problem a lot but it seems I just can't figure this out. The problem is that touch goes through my UI elements and activates buttons behind UI. I have tried using the...
View ArticleHow to get precise spawn interval (C#)?
Hello! I am having some problems I did not anticipate with my current enemy spawning system. I have a 2D game and I'm using a coroutine with WaitForSeconds as interval between enemy spawning. The...
View ArticleCapturing Screenshots on Android
I am trying to capture screenshots on Android, they need to appear in the Android gallery. So far I have been able to use Application.CaptureScreenshot successfully to take screenshots, but it only...
View ArticleProblems with LookAt (C#)
I have a problem with LookAt. I have some gameobjects (each have sprite renderer) and these gameobjects are childs of another gameobject. I need to make the sprites face towards the movement direction,...
View ArticleChecking if all gameobjects in array are inactive
I need to check an array of gameobjects and do something once they all become inactive. The array is quite long so doing this... if(object[0].activeInHierarchy == false &&...
View ArticlePinch to zoom acting weird on Android
I watched an Unity tutorial recently on how to write pinch to zoom script in C#. I was able to make it work just as it is supposed to work on my Samsung Galaxy Tab S 10.5, but for some weird reason it...
View ArticleHow to prevent touch going through UI?
I have been reading about this problem a lot but it seems I just can't figure this out. The problem is that touch goes through my UI elements and activates buttons behind UI. I have tried using the...
View ArticleHow to get precise spawn interval (C#)?
Hello! I am having some problems I did not anticipate with my current enemy spawning system. I have a 2D game and I'm using a coroutine with WaitForSeconds as interval between enemy spawning. The...
View ArticleHow to move a 3D object to canvas object position?
I'm trying to figure out how to get my particle effect object positioned right on top of a canvas image object. I have been unable to find the answer, most people want to position a canvas object to 3D...
View Article