Quantcast
Channel: Latest Questions on Unity Answers
Browsing all 171066 articles
Browse latest View live
↧

How to call a static function at game start

Hello Unity Answers and thankyou, I'm new to Unity and loving it so far. I'm setting up basic game tools and functions I've used in previous code, and for things like Dictionary initialization I would...

View Article


Is there way to controll texture compression for iOS?

What PVRTC formats unity uses for diffuse/normal/lightmaps? Is there way to controll texture compression for iOS? P.S Importing texture we can override format in Inspector. For iOS I only see 1)...

View Article


C# Using Lists and RemoveAt

I'm doing something wrong but as this is my first time working with Lists, I don't know what. My MobSpawner does this private void SpawnAllMobs() { for(int mobcnt = 0; mobcnt < mobCount; mobcnt ++)...

View Article

Texture filtering

In Quality Settings we can turn off anisotropic filtering. What filtering used in this case on iOS? (I assume it will be filtering that was set to particular texture when importing it =>...

View Article

How do you create a Deus Ex Health System?

How do you create a health system like the one in Deus Ex? Except with more body parts. Here's the total: Upper Head(Cranium); Lower Head(Jaw); Spinal Cord; Neck; Chest; Stomach; Upper Back; Lower...

View Article


Play Audio from different Object

A small and (hopefully) simple question to answer. I have a script where an audio clip is played, but I don't want that audio clip to be played on the object (had I added an audio source), but on my...

View Article

Unity Android Developing is Impossible with Emulator

After a whole day of sitting at my computer looking up on how to, 1. Making Android SDK work correctly, and, 2. Trying it to get it to work on my emulator, I have deduced - using the emulator to...

View Article

Trouble Changing Position of a GameObject

Can anyone point out the correct way to do this? I cannot get my code to work using this method. I've heard of camera.ScreenToWorldPoint but I'm not sure if that will get the job done correctly or how...

View Article


MMO Timer?

I want to make a MMO game like grepolis and i want to make raw materials to produce. For example the wood is 0 and after 60 seconds became 10, but when you close the google the game produce the materials.

View Article


Deploy to android - Compilation problem

Hi, I get the below error when pressing the build and run-button for android in unity 4.1.5 (free version). the sdk is installed (latest version) and I can deploy from eclipse. Unity does not seem to...

View Article

OnCollision using Orthello2D Framework is causing NullReferenceException

Hello everyone! I have been trying to check the tag of the object my "score object" collides with. I tried this: using UnityEngine; using System.Collections; public class ScoreUpgrade : MonoBehaviour {...

View Article

Multimesh models / changing meshes between them

I have to simple multimesh models just to play around changing meshes between them. Both created in 3Ds max, both have same bone structure and mesh parts (head, body, hands, legs). Those parts attached...

View Article

How do I retrieve an item from a list?

Alright, this is a little bit more complicated than a standard list call. I have already read through this link....

View Article


Horizontal scrolling style compass

How do I setup a horizontal scrolling style compass that turns with my player?

View Article

How to instantiate projectile in the direction that my character is moving?

I'm working on a top-down sport-like game prototype and used a control scheme from the documentation, which looks like this (this is my character's control script): var speed : float = 6.0; var...

View Article


Move a rigidbody towards a object without looking at it?

Like the title says, I want a rigidbody to move towards a object in my scene, but I don't want the player to have to look at/rotate towards the object. I was thinking of using addforce but I have no...

View Article

Can i Combine unity with other progam (for Flash, ios and Android?

Hello guys, fist, i am sorry about my English. I have a program and a unity game, can i link them together and combine them in to one program? For example: I want play any SNES game (like a minigame)...

View Article


How to correctly handle unit selection

So, I'm trying to create a basic RTS game, but I keep stumbling at this part, while selecting all of the units using the GUI.Box method, I don't know how to store them somewhere to make them actually...

View Article

How to Translate Object to Mouse Click Point in Game-World Coordinates

Hey everyone, I swear I have gone through every link, forum, and tutorial on how to get this to work, yet nothing works. Thank you for taking the time to read this, my first post - my frustration is...

View Article

Stamina Bar?

Do you guys know how to add stamina bar? If you run, your stamina bar will decrease and then it will slowly recharge. I have watched the video of it, and he modified the character motor. I do what he...

View Article
Browsing all 171066 articles
Browse latest View live


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