Quantcast
Channel: Answers by "hangemhigh"
Browsing all 35 articles
Browse latest View live

Answer by hangemhigh

Solution 1: 1) Add Physics Material and increase the bounciness. 2) Add rigidbody2D and set the drag to be 0 or 0.001. Less drag you have, more bouncing time for the ball. Solution 2: 1) Add...

View Article



Answer by hangemhigh

Only use Mesh Collider when it is needed. Instead of using Mesh Collider for everything in your scene, use Compound Colliders for your environment. A way of making a simple compound collider is to...

View Article

Answer by hangemhigh

I found one possible error but don't know if that is the only problem in your code. Replace grid = gameObject.GetComponent(); with grid = grid.GetComponent(); If that doesn't work, post the console...

View Article

Answer by hangemhigh

You should explain more of what you are trying to do. For me, it seems like you are trying to check if GO object has the same material with M material? To compare a material to a game object, you must...

View Article

Answer by hangemhigh

No, not really. Unity doesn't have a built in Plugin for that but you can easily make your own. Assuming you are making this for Android devices, you need to create a function that shows the dialog in...

View Article


Answer by hangemhigh

Unity has a built in Safe Saving System that can handle this. [PlayerPrefs][1] string playerName = "Anymeese"; To save it, use PlayerPrefs.SetString("Player Name", playerName); To Read it After, use...

View Article

Answer by hangemhigh

Yes. On their store website they made it clear that if you buy Unity now, they will give you access to Unity 4 while waiting for Unity 5. It says Pre-order Unity 5 and get Unity 4 today! [Here is the...

View Article

Answer by hangemhigh

First, remove private from IEnumerator LoadLevelDelayed(); Try that... Where are you calling startCoroutine() from? **EDIT:** That is the issue. I've been using coroutine and they worked very well. You...

View Article


Answer by hangemhigh

The problem is that FindObjectsOfType will ONLY work when the object it is finding is Enabled. It wont work if the object is [INACTIVE or a Prefab.][1] [1]:...

View Article


Answer by hangemhigh

soundchkbox.value = true OR soundchkbox.value = false; That took days before I discovered the way to do this but it will be helpful for those who will be stuck here too.

View Article

Answer by hangemhigh

Never ending texture. Just keep scrolling down. They are all free and you don't need to register to download one. Click "Show More" at the end of the page and textures will be everywhere. All you have...

View Article

Answer by hangemhigh

The problem is because I put the canvas of the slider in a an empty gameobject. If I remove the gameobject and use the canvas as the parent object, it works. So basically the parent object of the...

View Article

Answer by hangemhigh

You are trying to access another function from another class. You can't do MoveCubes.Movecubes(); unless the function you want to call from another class is static. Example of a static function is as...

View Article


Answer by hangemhigh

Its not showing because the function "choosePlayerRole" takes 2 parameters which are Menu menu,playerRole myPlayerRole. For it to show up, the function must take only 1 parameter. These parameters...

View Article

Answer by hangemhigh

Your problem lays here void Update(){ Score += (int)Time.time; } It is running even when paused. You need to define a variable that tells it to increase only if game is not pause. For example, private...

View Article


Answer by hangemhigh

Yes you can. You need to learn how to write a shader or hire some else who knows how to write a shader. Create a new material and choose that shader. Then put the material in the Material slot of the...

View Article

Answer by hangemhigh

Very easy to do. public void OnDrop (PointerEventData eventData) { Debug.Log (eventData.pointerDrag.name + "was drop on " + gameObject.name); Draggable d = eventData.pointerDrag.GetComponent ();//d...

View Article


Answer by hangemhigh

Maybe WWW is not done before you accessed it. Try this WWW cityRequest; // Use this for initialization void Start () { StartCoroutine(getCityInfo()); } // Update is called once per frame void Update ()...

View Article

Answer by hangemhigh

Solution 1: 1) Add Physics Material and increase the bounciness. 2) Add rigidbody2D and set the drag to be 0 or 0.001. Less drag you have, more bouncing time for the ball. Solution 2: 1) Add...

View Article

Answer by hangemhigh

Only use Mesh Collider when it is needed. Instead of using Mesh Collider for everything in your scene, use Compound Colliders for your environment. A way of making a simple compound collider is to...

View Article
Browsing all 35 articles
Browse latest View live




Latest Images