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

Change Camera on (Right) Mouse Click

Hello, I need help on this one. I'm trying to make a TPS. One of the basic features is if you hold RMB, the camera is switched to another camera. Now, I'm very bad at coding so I'll need your help....

View Article


Why does this script check for raycast collision? Is it necessary?

I recently downloaded the Unity Project #1 from the new Unity Learn and was reading through the scripts. This code snippet comes from the DoneCCTVPlayerDetection.cs script. It is attached to a camera...

View Article


why broken Terrain Texture Map(Base Map Dist value).

why broken Terrain Texture Map(Base Map Dist value). - Base Map Dist. value: 0 ![alt text][1] - Base Map Dist. value: 160 ![alt text][2] - Base Map Dist.value: 270 ![alt text][3] [1]:...

View Article

Grass texture unaffected by spotlight

Hello! We are creating a horror inspired game for a project in school so i'm new to unity. I encountered a problem with lightning today. As you can see in the picture we have a "flashlight" which is...

View Article

Preventing a item to collide

Hi! I need to stop collisions on certain items at all (dead monsters that once dead will simply fall through the terrain, they will be destroyed once reach a certain Y coordinate). Is there a way to...

View Article


Character Controller missing reference on almost any script.

I've been pulling my hair out with this problem. It's happening for multiple scripts. The example I'll use is because it is freely available to the public. The errors I am getting are the following...

View Article

In my game I have multiple enemy, I applied rag doll on them, if I kill one...

In my game I have multiple enemy, I applied rag doll on them, if I kill one of them all are transferring into rag doll any suggestions for that? And I am searching them with using...

View Article

How to record the entire game and user behaviour for a research project?

For a research project we would like to record the entire game. Meaning all user actions (especially mouse movement since a keyboard cannot be used) and the camera position linked with a timestamp....

View Article


Shooting bullet problem c#

The codes below showcase, a turret, bullet and enemy health script respectively. However i'm having some serious problems, currently the script instantiates 1000s of clones of prefab type bullet....

View Article


How can i make my animation idle working properly while my walk animation is on?

function Start () { // Set all animations to loop animation.wrapMode = WrapMode.Loop; // except shooting animation["run"].wrapMode = WrapMode.Once; // Put idle and walk into lower layers (The default...

View Article

blender & unity for android

hi! i make game for android i read that i could make character in blender then import it in unity then write codes, but i dont know how to import it to unity can anyone tell me how ? and where to click...

View Article

Slender type game

#Do Not post a new question on Unity Answers with my scripts# **Simply go to the forum thread, and then ask anything you like.** Here it is again :...

View Article

how to call animation from script

Hi, i have imported a model from 3Dstudio, and i splitted animation in 3 sub-animations. When i import the model into hierarchy, the model has attached an **Animator** Component where i can only insert...

View Article


Change multiple object layers

Hey Gang, I am trying to change some of my object layers to ignoreRaycast when the weapon menu is active and this is the code I am using Turrets = GameObject.FindObjectsWithTag("PlayerObject"); for...

View Article

Rain{indie} and Mecanim... is there a way?

I've been knocking my head around for a while and feel as though I'm the only person attempting to get these two systems to talk to each other. I'm sure it's an easy fix and all I need to do is send a...

View Article


Shader Transperency issue

Hi all, I have a model of human leg and I want to create an opacity factor for muscles and bones, by playing with their's alpha channel. And currently I am using Transparent/VertexLit with Z...

View Article

Weapon rotation, as main camera child

Hi, I put my weapon (pistol) as a main camera child -> Camera ----> Weapons (group) ------>Pistol I tried to put a group between the weapons and the pistol. But i have some odd effect when i...

View Article


Texture before or after scaling matter?

Just wondering, by applying a texture to a size 1 quad in the unity editor (GUI), then scaling it up in code, is there a loss of quality? Would it be better to scale then apply textures in code? OR...

View Article

first Gun fires not well

I have build my first GunTurret with unity and i am not very satisfied. Could someone take a look on it and give me some tips to improve or to make sure, that every bullet finds his way....

View Article

It seems like a Event.current.clickCount problem with Unity 4

Hello, I updated to Unity 4.1.0 recently from 3.5 on a Mac. I am using a C# script called GUILayoutx.cs taken from the very handy FileBrowser in the Wiki. There's an if statement there, which checks if...

View Article
Browsing all 171066 articles
Browse latest View live


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