There isn’t a “GetFirst()”. LinkedList have a “.first” property.
Generally linked lists are slower than Queues if you need the push/pop functionality and less flexible than Lists if you are trying to access elements in the middle… might want to reconsider using that collection
Yes, but when I write this :
linkedList.First.GetComponent().text
I get an error like this :
Type System.Collections.Generic.LinkedListNode<UnityEngine.GameObject>' does not contain a definition for GetComponent’ and no extension method GetComponent' of type System.Collections.Generic.LinkedListNode<UnityEngine.GameObject>’ could be found (are you missing a using directive or an assembly reference?)
Never used a linkedlist before, so not sure how they work.
Generally you can right click on an error and if using VS, there is a lightbulb. Click it and see if it offers you options to resolve the issue. Mono has a similar option, but I don’t remember what they call theirs.
Thank you. In the link you gave me I found this :
linkedList.First.Value.GetComponent().text
And yeah I’m using it first time and all i found was just from another forum threads