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

Glow single Object

Hi Guys I have problem with Glowing. I need to glow only one object. I read that glow work on ALPHA so I set ALPHA to 0 on object with one must be without glow but it didn't work. Color color1 =...

View Article


Should I always add a kinematic rigidbody to the moveable game object

In the [official unity tutorial][1] I heard a frase about necessarily adding a rigidbody component to everyone animated or moving object in scene to reduce unity cache usage and increase game speed. Is...

View Article


Displaying a letter on screen

Hi, i have one question . How to show a letter on the screen (like it was in slender). I know how to "take" a letter from the ground ( i just made a script to press "f" and then destroy gameobject and...

View Article

Ambiguous reference 'name': HSController.name, UnityEngine.Object.name.

Hi, I cant figure out how to get the player name from my game to the HSController script. I have... var name: String = ""; and To get the players name... name.text = getPlayN.player1; But i keep...

View Article

Why doesn't unity import animations unless it's unattached or rigged?

It all started when I tried importing a model into unity, and it didn't have its animations. Tried exporting it as fbx and changing a few settings, no dice. After a long time of searching and...

View Article


NullReferenceException: Object reference not set to an instance of an object

I have 2 different scripts. 1 of them has int variable count and the other one goes and changes it's value. But I get this error. Can you check it? First Script: using UnityEngine; using...

View Article

"Best" Method for live multiplayer between devices?

Hello, I'm working on a small game that will be only playable between two players on different devices. I'm interested in finding out what people think about various methods of doing this. I've found...

View Article

ai navigation help

i am making a ai that will go to a 10 different objects but it keeps stopping at the second one the script is not finished but i programmed it to go to the first second and third but it wont go to the...

View Article


Why is my model being rendered this way?

![alt text][1] [1]: http://gyazo.com/d19c3551d306c5114d0b75f53a715775.png As you can see, a box with the same material renders correctly. The model however, doesn't. I made the model in blender.

View Article


Reset The Scene ?

Hello, I've been using Application.LoadLevel(0) for resetting to my scene but all stuffs that I've done is still there :S So how can i Completely Reset my Scene ? Is there a code piece for it :D ?

View Article

My Character lags when moving, when i have a custom made blender model what...

View Article

Animation scripting problem!

using UnityEngine; using System.Collections; public class EnemyAnimation : MonoBehaviour { Animation _animation; void Start() { _animation = GetComponentInChildren(); int animToPlay; string...

View Article

I have downloaded some animation packs from internet and I want to apply to...

View Article


AssetBundle missing components arbitrarily

I have a few Prefabs, each with a BoxCollider and a custom script attached. Each prefab has children that have meshes and renderers. I export each prefab separately using options:...

View Article

Random Splash Image

Hello everyone, I did installed the big title game "Subway Surfers" on my android tablet and i observed that the game starts. Is there any way to have such random splash images on my game too. Thanks...

View Article


how to access a non static timer to store in highscore

using UnityEngine; using System.Collections; public class Timer : MonoBehaviour { public float timer = 0f; public string time ; // Use this for initialization void Start () { } // Update is called once...

View Article

Inventory = How to add items :) C-Sharp

Hi, im trying to create an inventory system to my game. But i have problem with add items to my inventory. it is sad for me :( I've got: In inventory.cs: float[,] plecak = new float[4,4]; // tablica,...

View Article


Toggle Textures Script

I've been asking for help on creating a script that toggles all textures in the scene on and off. I'm currently using this script which works to an extent. It toggles textures off and on however upon...

View Article

C# find class file path for any class

I have looked all over for this, but to no avail. What I want to do is the following: determine the path of the class file in which to find a specified C# class (non-monobehaviour/ScriptableObject). I...

View Article

My rigidbody collider isn't detecting collisions?

I've seen the table and googled yet couldn't find anything. I'm using a script to instantiate a fireball, this is the script: public bool Attack() { Ray ray = Camera.main.ViewportPointToRay(new...

View Article
Browsing all 171066 articles
Browse latest View live


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