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

Argument out of range on a List?

$
0
0
Hi! I'm getting an error that I don't understand. Here's the code... private List _activeNotifsList; ... void Start () { _activeNotifsList = new List(); } ... public void LerpNotifButtons(){ //If an active notif exists in slot 0 and it is not yet at its target position, lerp it. if(_activeNotifsList[0] != null) { //Do something } } Where the if statement is returning the out of range error. Is it because the list doesn't actually contain any elements yet?

Viewing all articles
Browse latest Browse all 7934

Trending Articles