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

SetActive() not working

hi i'm using unity 3.5 i want active an object in script how can i do this? i use SetActive method but it's got error error text :> Assets/Scripts/GameManager.cs(39,34): error CS1061: Type...

View Article


skin error in unity 4.3

i rigged my charecter (snake) in maya then imported its fbx into unity 4.1 and it worked just fine,but when i upgraded to unity 4.3 i had a skin problem all the mesh doesnt look as it should be,any...

View Article


UnassignedReferenceException: Event after assigning?

I'm an experienced programmer learning Unity for the first time. I know this is the most basic and common error for the newbies. I think I have got it right but it still produces this error. What am I...

View Article

Photon Networking Child Inconsistencies

I am new to Photon networking and I've been struggling with making a simple multiplayer spaceship battles game. My main point of difficulty right now is the script to fire a projectile and have that...

View Article

Java script error

hello, I am a begginer in unity and I started to download lessons either from unity site or other sites but I always get a java script error even if I copy the scripts from it's resources and paste it...

View Article


Is There A Horizontal AND Vertical Head Bobbing Script?

I've Seen Many Instances Of A Vertical Head Bobbing Sript, But Not ONE That Has Vartical AND Horizontal Head Bobbing (Preferebly Left To Right And Vice Versa With a Vertical Curve Making It Go Up And...

View Article

Shooting spell at center of screen

Hey guys, I am trying to get a spell system working on a project, basically I have a crosshair in the center of the screen and when the player attempts to cast a spell I do a raycast from...

View Article

Unity 3D automated build on Windows Server 2003

As mentioned in [Unity Reference][1], it is possible to start Unity with the arguments "-batchmode" and "-nographics". That works so far to build an .exe File from my Unity game project, but the...

View Article


Ball Isn't following Trajectory line : Unity3d

Hello Everyone, I am working on projectile motion. Sometimes my ball does not follow the trajectory line. Code is here : #pragma strict #pragma implicit #pragma downcast var turret : Transform; var...

View Article


Problems with FPS controller movement

Hey guys what's up? I can't get the FPS controller to move to the right neither with the D button nor the right arrow. The mouse works fine,the W-A-S buttons are responsive it's only the D button. I...

View Article

Problems with FPS controller movement

Hey guys what's up? I can't get the FPS controller to move to the right neither with the D button nor the right arrow. The mouse works fine,the W-A-S buttons are responsive it's only the D button. I...

View Article

retina support for unity3d UI?

Is there a way/plugin/option for unity itself to support retina screens? Everything about the UI looks pixelated.

View Article

How do I check for collisions when I move objects based on Time.deltaTime?

Hi all! I'm making a Pong clone for learning purposes. I'm not using Unity's built-in Physics2D system, but I'm manually moving objects by changing their positions by a *speed* value multiplied by...

View Article


How to get 2 melee units to fight

I am designing tower defense game similar to kingdom rush. I have creeps that attack with a sword and hero attack with a hammer. Hero has an area to guard and he can’t move out of that area. Both units...

View Article

Unity - Retina 4-inch Support - Missing "Default-586h-2x.png" Xcode5

Hello, This error - Unity - Retina 4-inch Support - Missing "Default-586h@2x.png" is bugging me for too long. in Xcode4, this problem was solved by removing the Missing texture, and attaching a new...

View Article


I dont understand why this isnt working

I have a piece of code, but only this line doesn't work, does anyone have any idea why?? for (var checkDoor : GameObject in cells[i].GetComponent(AIpathCellScript).doors) the error states that:...

View Article

How to make the enemy hit me if is in range and if not then proceeding back...

Hi guys i wonder how to make the enemy hit you when he saw you and if is out of the range then it will proceed back to his waypoint. I have actually done the search target script as well as the...

View Article


CustomEditor and inherited components

I have two classes (base and inherited) and one custom editor component for base class. Base: 1) public class HF_Manager : MonoBehaviour { public virtual void OnUpdateData() { } } And inherited: 2)...

View Article

Null reference

Where is wrong in my code? using UnityEngine; using System.Collections; public class PlayerAttack : MonoBehaviour { public GameObject Enemy; Enemy enemyScript; void Start () { enemyScript =...

View Article

How to Drag and drop material ?

![How to drag and drop play maker or scrip?][1] [1]: /storage/temp/18918-draganddrop.jpg

View Article
Browsing all 171066 articles
Browse latest View live


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