NullReference when updating a List
I have a Nullreference error when updating a List. This List only keep items for an inventory, but the problem is not the List itself but when it tries to update it the first time. The List is in a...
View ArticleRemoving Missing Objects From A List
Hello, I have a list: public var enemies : List. = new List.(); That I put all of the enemies in a certain area in var hitColliders : Collider[] = Physics.OverlapSphere (transform.position,...
View ArticleList Other elements problems
using UnityEngine; using System.Collections; [System.Serializable] public class pl { public string name; public int hp,maxhp; public int attack; } using UnityEngine; using System.Collections; using...
View ArticleUnity/Mono doesn't support dll's with System.Collections.Generic.List? Using...
I'm trying to import a dll that uses System.Collections.Generic.List (Iserialization) however whenever that class is called, I get the following exception: Exception: System.TypeLoadException: Could...
View ArticleUsing System.Collections.Generic;
Just a curious question. using UnityEngine; using System.Collections; using System.Collections.Generic; This is what I often show from scripts that have lists. Why do we need System.Collections when we...
View ArticleProblem Checking A List
Well...it seems I'm re-approaching this problem. What I'm experiencing is...uhm...I guess you could say when I "despawn" a monster (the player has killed it), and "respawn" it...it adds all the moves...
View ArticleIt is not possible to invoke an expression of type...
Hi all, im having a problem with this code that tells me this: It is not possible to invoke an expression of type 'System.Collections.Generic.List.', ihave a class called itemHandler that i call with...
View ArticleSerialization error on loading a scene
We have a project that uses SimpleJSON to parse and save our Unity events On triggered actions. The issue we are getting is when we call our load function between scenes. It does not load our events....
View Articlebool[] to bool list
Is there a way to solve the following error without having to use one or the other. I want to use both so is there a way of converting from one to the other. 'cannot implicitly convert type bool[] to...
View Article
More Pages to Explore .....