Quantcast
Channel: Questions in topic: "count"
Browsing all 187 articles
Browse latest View live
↧

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 Article


Getting 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 Article


My 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 Article

Count 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 Article

Combine (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 Article


Dynamic 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 Article

Scoring 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 Article

Score 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 Article


Count 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 Article


Tessellation + 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 Article

counting 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 Article

How 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 Article

count 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 Article


Im 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 Article

Mobile 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 Article


How 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 Article

Code 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 Article


how 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 Article

multiple 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 Article

Code 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
Browsing all 187 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>