counting a letter for a word from an array?
Hello, I´m writing a very simple First-Person-Point&Click Game, where in one level you must collect letters of a word (which is a part of an array) to go into the next level. The collecting works,...
View ArticleGetting variable from script while keeping other code from it
Hello everyone, in my GameManager.cs I was trying to do a coroutine which stops the scene, counts for 3 seconds, and starts everything in the scene. I managed to stop game timer and stuff, but I've got...
View ArticleMy List is resetting to empty for no good reason
I have a private List of GameObjects that gets Added to when my space scene is initialised. There is nothing in my code removing or reducing the size of this list, but Debug.Logs of its .Count tell me...
View ArticleCount Prefabs on builded .apk
Hey, Is there any way to get a number of prefabs on a builded game? I know this will work in the Editor: var levelCount = Directory.GetFiles(Application.dataPath + "/Resources/Prefabs/",...
View ArticleCombine (skinned) submeshes causes increased vertcount(for each submesh the...
I have a skinned mesh made up of 5 meshes. Two of them have submeshes. After combining them to one mesh. The vertcount is increased by the number of submeshes of each mesh. Simple example: First mesh...
View ArticleDynamic Batching not working
I have this issue in unity3D that if I place to sprites on the scene and i duplicate them alternatively (in the order that the image shows) they are making 6 draw calls . This doesn't happen if I have...
View ArticleScoring system not working?
I'm trying to make it so that it will increase score by 10 when the gem is picked up by the Player gameObject. I have the Count: text on screen, but it isnt increasing by 1 when the prefab is picked...
View ArticleScore system not working
I am wanting to pick up a prefab, "Gem", and for the system to add 10 points. I have the scoreText visible on screen, but it doesn't add 10. Here is the code: using UnityEngine; using...
View ArticleCount Down Timer
Hello I would like to ask how you can make a count down timer that will run even when the game is off
View ArticleTessellation + total vert/tri count
Hi! Simple question: when using a simple fixed ammount tessellation shader found here http://docs.unity3d.com/Manual/SL-SurfaceShaderTessellation.html is it possible in any way to get the total count...
View Articlecounting the buttons clicks
Hi, I have this code that counts every click i make and after 16 clicks changes the scene(wich i want) using UnityEngine; using System.Collections; public class Counter : MonoBehaviour { int counter=0;...
View ArticleHow to add score when destroy another player with Raycast?
I making some multiplayer deathmatch game that is playing on the same keyboard shared by 3 players. **I want to make some scoring sistem, but i dont know:** -How could i check which player have...
View Articlecount how many gameobjects (with childiren) are in trigger?
Hey! I somehow cant figure out how i can count the amount of gameobjects (characters) insider a trigger. since its a character, it has many child objects. how can i count them? thanks!
View ArticleIm Trying To Access count int from another script ?
The Script Where The "count" int is. using UnityEngine; using System.Collections; using UnityEngine.UI; public class PlayerController : MonoBehaviour { public float speed; public Text countText; public...
View ArticleMobile Game: How much Tris Count is too much?
I'm making a low poly 3D environment (islands,trees,grass,rocks, and caves) for a mobile game and I was wondering if what is the optimal tris count for a mobile game to run smoothly? I'm using Blender...
View ArticleHow to count child dynamically?
I know that using transform.childCount will print the number of child in a parent. but it only prints one. How to will I know the number of children when it is dynamically changing at a runtime? here's...
View ArticleCode to replace the "count" commands in C# for text.
I am making a an app similar to [this](https://www.youtube.com/watch?v=jTtCsOjNwJQ&list=PLX2vGYjWbI0RZ3M5zSs-cegtIzv-FBi4q/ "title"). In the 8th video, a scoring feature is added. Is there anyway...
View Articlehow to count points for a water bottle flip game
I do not know how to count score when the bottle did a flip and lands on his back. I tried to compare rotation angles but it didnt work . i also tried with collision same issues . any help or...
View Articlemultiple score counts UI
Hi, I have a game where a roll a ball collides with 3 different types of collectible assets and I want the representative numbers of each asset to be shown on the UI. For example: collectible 1: (the...
View ArticleCode to replace the count commands in C# for text.
I am making a an app similar to [this](https://www.youtube.com/watch?v=38i4JQguH9s&t=219s). A scoring feature is added. Is there anyway to edit that code so instead of counting every time an object...
View Article