Quantcast
Channel: Questions in topic: "twice"
Browsing all 70 articles
Browse latest View live
↧

Why a texture always consume twice RAM when running?

I make a simple scene to clarify this problem. 1) import a 2048x2048 RGB 24bit texture, no mipmap. ![alt text][2] 2) create a new scene, then create a plane assigning a diffuse mat with this texture....

View Article


GetButtonDown() execusting twice

Here is the part of the code that is behaving abnormally: void GetGrabbed(RaycastHit playerHit, Vector3 direction) { if (moveState == "Down" && Input.GetButtonDown("Action1")) { print("Hi");...

View Article

Method runs twice, but isn't called twice and isn't subscribed twice

Method **foo()** is running twice and messing things up - I have ruled out the following potential causes: - Multiple instances of the script in the scene (with the ref: search of the scene hierarchy)...

View Article

1st Problem: OnLevelWasLoaded, method is getting called twice. 2nd: Loading...

First Problem: As the title states, the method is getting called twice. I have a scene, which have 2 doors. These doors have a script attached to them which has the OnLevelWasLoaded. When I enter this...

View Article

How to quit game on double pressing back button?

I am trying to quit my game after pressing back button but its not working. Here is my code: public Canvas quitMenu; public Button startText; // Use this for initialization void Start () { quitMenu =...

View Article


Instantiating two prefabs instead one how to fix it?

Well hello Guys back with another problem. Im making some grenade throw thing but instead of one grenade but two grenades.. How to fix that. Here's my script. public class GrenadeThrow1 : MonoBehaviour...

View Article

OnCollisionEnter2D being called twice

I need to calculate a "hit" during every collision. To avoid counting a hit with the same object twice, I check for the Instance ID. The problem is that the collision seems to be happening twice, even...

View Article

Function called twice, problem, callback

So I'm trying to make Multiplayer game for the first time. My game is like a Star Wars Space Fight using x wings, they shoot 4 blast or lasers when I press "space", each laser takes off 1 point of the...

View Article


Trying to pickup an item via trigger, character has 2 collision boxes which...

I'm sure this question has been asked multiple times but I can't for the life of me word it correctly to find exactly what I need all of them seem to be related to other things. I have a pickup object...

View Article


My score gets incremented a lot of times

Hello! I have been working on a 2d game and I implemented a score system for some reasons my total score is way more **For Example: My last total score was 7 and I just got a score of 2, The total...

View Article
Browsing all 70 articles
Browse latest View live


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