C# ArrayList Accessing and RemoveAt?
So I have an ArrayList defined and I'm feeding it information, once it hits 5 units large I want it to delete everything past the first position in the array I.e if the array contains [0,3,2,1,4] I...
View ArticleHow do I change the way I open scripts.
I opened a script with Microsoft Visual Studio, and i want to change the way I open the script.
View Articleunity 5.2.1f1 error result->dynamic bounds
I have this problem. unity is closed. any solution?
View ArticleGame Build No Terrain
So to start off I've build a massive world of mountains waterfalls grass rocks etc.. In the test run in unity the terrain is visible but when I build the game -.exe the terrain is still there just...
View ArticlePhotonUnityNetworking UnityException
Hello I am using PhotonUnityNetworking for the multiplayer in my new game. However for some reason I am getting the error UnityException: You are not allowed to call this function when declaring a...
View ArticleI went To Test The Build of my Game and it crashed From a Trigger
I Made a Menu for my Game and it works inside The Engine but when I Do a Build it crash's. I Found out it was a Trigger causing the issue because I removed it and all was good. so I remade a Trigger...
View ArticleHelp me with this script! Im getting error!!!
Im getting a error : Cannot implicitly convert type 'bool' to 'int'. Can someone fix my dumb script? using UnityEngine; using UnityEngine.UI; using System.Collections; public class Hotbar :...
View ArticleChildren Mesh Render Issues.
I am attempting to turn off all of the child objects SkinnedMeshRenderers and I am using his script: var theObject : GameObject; function Update () { theObject.GetComponentsInChildren.().enabled =...
View ArticleError CS1525, Error CS8025
Hello guys, i need help it says there unexpected symbol '}' thanks! using UnityEngine; using System.Collections; public class MainMenuButtons : MonoBehaviour { function About() {...
View ArticleThe variable thing of SomeScript has not been assigned.
Right so i am currently trying to spawn two prefabs whenever the function spawn is run. The issue I keep encountering is that the Cube variable in this script comes back as unassigned. I am at a loss...
View ArticleHow do I get the ball to bounce off the paddles at an angle?
I have been using a Ping Pong game tutorial. This is the C# code that I had learned and copied to get my ball to bounce off the paddles at an angle and to get the ball moving back and forth. public...
View Article[Solved]NullReferenceException in a ClientRpc method
Hello there. I'm trying to make a coop game and here is my issue. I have two functions that I call to indicate if a player has equipped an item so that both players can see visually those items...
View ArticleProblem with == Null
I have a problem I have this script : if (Vertices == null) { Vertices = d.Vertices; Triangles = d.Triangles; Uvs = d.Uvs; Debug.Log ("activated Null in meshdata "+Vertices.Length); } My Problem is...
View ArticleSimple car-enter script
Again, i need help... i made myself a new script to enter and descend a car (in Unity 5), but it doesnt work... any idea where the problem is? It says that some semicolons are missing, but theyre all...
View ArticleI followed a online tutorial and I keep getting...
using UnityEngine; using System.Collections; public class Player : Entities { void Start () { } void Update () { if (Input.GetKey (KeyCode.W) || Input.GetKey (KeyCode.UpArrow)) {...
View ArticleHow do I i fix error CS0619?
I can't put in scripts with this error I hate it I can't complete the game, how do I fix it? Here's the coding the error put out- using System; using System.Collections.Generic; using UnityEngine;...
View ArticleDetect if object is child, from extern script
I am trying to make a VR find objects game. There is a GUI with shaded objects to be found. When you touch an object on screen and the object is one of the findable objects, the object dissapears and...
View ArticleAccess Violation (0xc0000005)
I build a game for Windows 7 32 bits. When I try to run it the game crashes with Access Violation (0xc0000005) error. I googled that error, and all solutions are about setting up the shaders. I have...
View ArticleAssets Folder Appearing to be Empty
I first started doing the Unity tutorials back in mid-July, and after taking a break, I'm back trying to complete the 'Survival Shooter' tutorial. When I first logged in to Unity, I was prompted to...
View ArticleParsing error,
using UnityEngine; using System.Collections; #pragma strict public var one : Camera ; public var two : Camera ; function Start() { one.Camera.enabled = true; two.Camera.enabled = false; } function...
View Article