Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

List.FindIndex error C#

$
0
0
Hi, I am trying to perfom this code but it keeps throwing me this error. I looked it up and didnt find nothing useful. public int getBlockIndex(Vector3 pos){ int index = ChunkBlocks.FindIndex(pos); return index; } Error: Assets/Chunk.cs(44,49): error CS1502: The best overloaded method match for `System.Collections.Generic.List.FindIndex(System.Predicate)' has some invalid arguments And Assets/Chunk.cs(44,49): error CS1503: Argument `#1' cannot convert `UnityEngine.Vector3' expression to type `System.Predicate' Any ideas, Suggestions fixies or explanation why this is not working? As far as i know is something related to delgates which i dont know what they are, I tried to fix it but i couldnt. Thanks.

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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