Variabletype
Hello, what type of variable do I need to use when I want to initialize a variable which holds a whole class. This is my initialization: class TasseMoovementVerweis; That is what the variable is for:...
View ArticleProblem with regeneration script
I know this is probably a very simple problems, however I'm having trouble thinking up why it's wrong. public int health = 50; // Use this for initialization void Start () { } // Update is called once...
View Article"jump" Is not a member of object?
So... I have a GUI on screen that when clicked will trigger the "Jump" method on my character: var player : GameObject; var script; function Start(){ player = gameObject.FindWithTag("Player") ; script...
View ArticleEnum Type Inventory?
I have an "if" statement: if(curBlock = BrickType.Dirt) and I want it to see is your "Current Block" is dirt. BrickType is an enum: `public enum BrickType {Dirt, ect...}, because I have many different...
View ArticleWhy am I getting this error when both properly named classes/scripts are on...
**I got a GameObject named "Store UI Panel". On "Store UI Panel" I got two script components:** 1. StoreKitEventListener.cs 2. TOTstoreHUD.cs *(my script) that is this:* using UnityEngine; using...
View ArticleCannot build for Windows Store Apps because of 'Invalid Characters in Path'
I've been spending the past few hours googling how to resolve it, going to all the suggested links and trying everything I can find (such as setting JAVA_HOME, etc.) but most of the solutions have to...
View Articleerror in firefox
after instalation to play in **Firefox**, me launch this error, but in **Chrome** the plugin run normally, can i play for example Contract Wars, i install the **Unity web player** some times with...
View ArticleAn object reference is required to access non-static member...
Okay, I'm trying to make a door visible by turning on the mesh renderer, so I made this code, but I'm getting this error: *Assets/scripts/NewDoor.cs(18,35): error CS0120: An object reference is...
View ArticleEvery script I have stopped working after the update
I just got around to updating my Unity and now all of my scripts say "The associated script cannot be loaded. Please fix any compile errors and assign a valid script." What can I do to fix this? They...
View Articleforeach (Touch touch in Input.touches) not working
Hey guys, I am trying to use a foreach loop for the menus. I am getting this error: error CS0030: Cannot convert type `UnityEngine.Touch' to `Touch' Any ideas? Works fine in UnityScript but not in C#...
View ArticleUnity Gui lable problem with showing js var using C#
i get the following errors on my script: Assets/Scripts/HUD.cs(27,21): error CS1502: The best overloaded method match for `UnityEngine.GUI.Label(UnityEngine.Rect, string)' has some invalid arguments...
View ArticleHelp with this error: Operator '*' cannot be used with a left hand side of...
Getting this error on the scripting for my camera that follows my plane around. Error is "Operator '*' cannot be used with a left hand side of type 'Object' and a right hand side of type...
View Articlethreading if() problem
Hey! Does anybody know what this error means? *CompareBaseObjectsInternal can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when...
View ArticleMy character Controller always drifts to the left.
Hi. I just started a new project, and created a cube, and placed my Character Controller on it. When I click play, my character drifts to the left, and off the cube. When i tried turning the camera...
View Article[Resolved]When I go into Unity3D (not Pro), there's only a black screen. How...
**EDIT:** I fixed the problem by removing WindowFX(by Stardock). When I start Unity3D into my new project(with nothing.), nothing shows up in the windows. The "Welcome To Unity" windows is there, but...
View Articleerror ! help !
Failed to update Unity Web Player A newer version of Unity Web Player is required, but the auto-update download failed. Was trying to download...
View Article2D moving Platform
#pragma strict private var Xpos : float; private var Ypos : float; private var max : boolean; var Vert : boolean; var maxAmount : int; var step : float; function Start () { Xpos = transform.position.x;...
View ArticlePlatformMover-Error BCE0044: expecting EOF, found '}'
Have been following this Unity tutorial on Youtube for a side scroller game and writing a script to make a platform move however i keep getting the error BCE0044: expecting EOF, found '}'. I've tried...
View ArticleMouselook Script Parsing Error?
Unity wont let me play test my game because I have: Assets/Standard Assets/Camera Scripts/MouseLook.cs(2,1): error CS8025: Parsing error Here's my mouselook script enum RotationAxes {MouseX, MouseY,...
View ArticleError building Player: KeyNotFoundException: The given key was not present in...
Hello everyone, I am still new to Unity and I am developing a mobile Application(ANDROID) but the problem is I am getting that error whenever I try to "Build and Run" the Project. Error building...
View Article